AMB generates SCRNLIST when you specify multiple I/O screens for a program in the Project Explorer.
[TP-]SCRNLIST screenname1 [... screenname12] ... [MAPSET(mapsetname)] ... [LINKAGE] ... [REDEFINE|NOREDEF]
screenname |
The name of a screen. |
MAPSETmapsetname) |
Mapset containing the screen(s) received by the program; must be a literal (maximum 7 characters). |
LINKAGE |
Generate every screen record in the Linkage Section instead of in Working-Storage. |
REDEFINE |
Default. Screen records redefine each other. |
NOREDEF |
Screen records do not redefine each other. Ignored when coded with LINKAGE. |
SCRNLIST SCRA SCRB MAPSET(SCRASET)
SCRNLIST SCRA MAPSET(SCRASET) LINKAGE
SCRNLIST SCRA SCRB NOREDEF
[TP-]SCRNLIST screenname1[(LK)] [... screenname40[(LK)]]
[TP-]SCRNLIST screenname1[ ... screenname40] ... [LINKAGE]
screenname |
The name of a screen. |
LINKAGE |
Generate every screen record in the Linkage Section instead of in Working-Storage. |
SCRNLIST SCRA SCRB
SCRNLIST SCRA SCRB(LK)
[TP-]SCRNLIST screenname1 [...screenname40]
[TP-]SCRNLIST screenname1 [... screenname40]
AMB Paragraph | Paragraph Function |
---|---|
APS-CHK-SCRN-RECEIVED-PARA |
Checks which screen was received |
APS-screenname-RECEIVED-PARA |
Receives the screen |
APS-SCRNLIST-EDIT-PARA |
Determines which screen has field edits |
APS-screenname-INP-EDIT-PARA |
Processes screen field edits |
Define the rules using these predefined rule name formats:
$TP-PRE-CHK-SCRN-RECEIVED$TP-POST-CHK-SCRN-RECEIVED $TP-PRE-screenname-RECEIVED $TP-POST-screenname-RECEIVED $TP-PRE-SCRNLIST-EDIT $TP-POST-SCRNLIST-EDIT $TP-PRE-screenname-INP-EDIT $TP-POST-screenname-INP-EDIT
screenname |
The name of a screen. |
IF TP-SCREENA-RECEIVED SCREENC-FIELD-1 = SCREENA-FIELD-X SCREENC-FIELD-2 = SCREENA-FIELD-Y SCREENC-FIELD-3 = SCREENA-FIELD-Z . . IF TP-SCREENB-RECEIVED SCREENC-FIELD-1 = SCREENB-FIELD-XX SCREENC-FIELD-2 = SCREENB-FIELD-YY SCREENC-FIELD-3 = SCREENB-FIELD-ZZ
SCRNLIST SCREENA/SCREENB SCREENC
TP-SCRN-RECEIVED PIC X(08) 88 TP-screenname-RECEIVED VALUE 'screenname'.