Professional Documents
Culture Documents
Interactive Applications
Batch Processing: Program is run without human intervention or control. Interactive Processing: User driven
Display files are needed for interaction.
Screen Design Aid (SDA): Graphical utility that will generate DDS source code.
F3=Exit
CA12(12 F12=Cancel)
Generally used to move the user back a screen.
ENDIF
ENDWHILE
DDS Keywords
File Level:
Must be on first line of DDS, before Record Format REF: reference another file for specifications INDARA: organize indicators into 99-byte data structure MSGLOC: specifies message line for error messages (default is last line, 24)
DDS Keywords
Record Level:
Appear on line record is named or lines immediately following, prior to field names. BLINK: causes cursor to blink OVERLAY: Display record without clearing previous record display.
DDS Keywords
Field Level:
Apply only to specific field it is associated. EDTCDE, EDTWRD: format numeric output DSPATR: Display Attribute, determines appearance. (BL blinking field, UL underline)
DSPATR(BL UL)
DDS Keywords
Field Level: Data Validation
VALUES: Specify exact values allowed.
VALUES(value1 value2 . . .)
DDS Keywords
Conditioning Indicators:
Field Keyword will only apply if conditioning indicator is turned on by the RPG program.
AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions++++++++++++++++++ ********** Beginning of data ************************************* A REF(SECTIONS) A PRINT A INDARA A R SECT1 A BLINK A CA03(03 'F3=EXIT') A 1 28'SECTION INQUIRY' A 3 2'TYPE VALUE, THEN ENTER.' A 5 5'SECTION NUMBER . .' A SECTION 5A I 5 24 A DSPATR(UL) A DSPATR(HI) A ERRMSG('SECTION NOT FOUND 90) A 23 2'F3=EXIT' A A R SECT2 A CA03(03 'F3=EXIT') A CA03(12 'F12=CANCEL') A 1 10'SECTION INFORMATION' A 3 2'SECTION NUMBER . . .' A SECTNO R O 3 29 A 3 2'COURSE . . . . . . .' A COURSE R O 4 29 A 5 2'INSTR . . . . . . .' A INSTR R O 5 29 A 6 2'ROOM . . . . . . .' A ROOM R O 6 29EDTCDE(Z) A 7 2'MEETS ON DAYS . . .' A DAYS R O 7 29 A 8 2'STARTING TIME . . .' A BEGTIME R O 8 29EDTWRD(' 0: ') A 9 2'ENROLLMENT . . . . .' A ENROLL R O 9 29EDTCDE(3) A 21 2'PRESS ENTER TO CONTINUE' A 23 2'F3=EXIT'
3 12 90
DOW EXFMT IF CHAIN EVAL IF EXFMT ENDIF ENDIF ENDDO
3N 12N 90N
NOT Exit Sect1 NOT Exit Sections SectNotFnd = NOT %FOUND(Sections) %FOUND(Sections) Sect2
Section