Академический Документы
Профессиональный Документы
Культура Документы
Objectives
Define display files Develop interactive applications
Display Files
Coded on DDS Specification Sheets (A) Enter using SEU and compile File, Record, and Field level entries Each record format defines what is written to or read from the workstation in a single I/O operation On an output operation, the record may fill an entire screen with prompts and/or values
DDS Coding
Record format begins with an R in position 17, followed by the name of the format Location of each literal and field on the screen is specified by using the screen line (39-41) and starting column (42-44) Code literals in position 45-80 and enclose them in apostrophes
CA
CA (Command Attention) returns control to the program without the input data values that the user has just entered CA03(03 F3=EXIT) CA03 establishes F3 as a value command key The 03 within the parentheses associates indicator 03 with F3,when F3 is pressed, indicator 03 comes on F3=EXIT serves only as documentation
CF
CF (Command Function) returns control to the program with the input values that the user has just entered
File-Level Keywords
MSGLOC (Message Location) specifies the position of the message line for error and other messages PRINT enables the PRINT key allowing the user to print the current screen VLDCMDKEY is a file-level or recordlevel keyword used to turn on an indicator when the user presses any valid (enabled) command key
Record-Level Keywords
Keywords CAnn, CFnn, PRINT, and VLDCMDKEY, can be used as recordlevel keywords BLINK causes the cursor to blink during the display of the record format with which it is associated OVERLAY specifies that the record format be displayed without clearing the previous display
Field-Level Keywords
EDTCDE (Edit Code) and EDTWRD (Edit Word) control the format of numeric output fields ERRMSG (Error Message): a message will display on the message line and the field appears on the screen in reverse image DSPATR (Display Attributes) determines the appearance of fields on the screen
DSPATR
The following attributes can be assigned to all types of fields
BL Blinking Field CS Column Separator HI High Intensity ND Nondisplay PC Position Cursor PR Protect RI Reverse Image UL Underline
Data Validation
VALUES keyword allows you to specify the exact valid values allowed for this field RANGE keyword allows you to specify a range within which the users entry must fall to be considered valid COMP allows you to specify a relational comparison to be made with the users entered value to determine validity
Conditioning Indicators
Three indicators can be included on one line, these indicators are in an AND relationship If you want an event to occur if one of several indicators is on (an OR relationship), code one indicator per line with an O in position 7
Screen Example
Panel ID Panel Title Optional Information Area (on menu, list, or info) And/or controlling fields for list panel Instruction Area (on menu, list, or entry) Panel Body Area Menu choices on Menu Panel List area on List Panel Entry Prompts on Entry Panel Information prompts on Information Panel
Points to Remember
Each record format of a display file defines a screen The format may include literals to display and fields for output, input, or both Each data item is positioned on the screen based on a line and column DDS entry for each