

Batch Compiler Coding Considerations › Compiler Statement Sequencing › PANEL, PFLD, MAP, and MFLD Statement Sequencing
PANEL, PFLD, MAP, and MFLD Statement Sequencing
The following order of specification applies when the developer prepares source composed of PANEL, PFLD, MAP, and MFLD statements:
- A PANEL statement must be followed immediately by the PFLD statements that define its related fields. The panel occurrence generated by the most recently executed PANEL statement is established as current both for subsequent PFLD statements and subsequent MAP statements.
- A MAP statement must be followed immediately by the MFLD statements that define its related fields. The following considerations apply:
- The panel occurrence named by the MAP statement must exist in the data dictionary before the MAP statement is compiled.
- The map occurrence generated by the most recently executed MAP statement is established as current for subsequent MFLD statements.
Sample Statements
The following abbreviated sample statements illustrate PANEL, PFLD, MAP, and MFLD statement sequencing:
ADD PANEL NEWPANEL
ADD PFLD EMP-ID
ADD PFLD EMP-FNAME
ADD PFLD EMP-LNAME
ADD PFLD DEPT-CODE
ADD MAP NEWMAP
PANEL IS NEWPANEL
ADD MFLD EMP-ID
ADD MFLD EMP-FNAME
ADD MFLD EMP-LNAME
ADD MFLD DEPT-CODE
In the previous example, the NEWPANEL panel occurrence is defined before related panel fields are defined; the NEWPANEL panel occurrence becomes current for the map occurrence generated by the ADD MAP NEWMAP statement.
It is not necessary to generate panel occurrences in the same compiler run as related map occurrences.
Copyright © 2013 CA.
All rights reserved.
 
|
|