Specifying the form of a structure
The macros can generate structure declarations in one of two forms, controlled by the DSECT parameter:
DSECT=YES An assembler-language DSECT instruction is used to start a new data section; the structure definition immediately follows the DSECT statement. No storage is allocated, so no initialization is possible. The label on the macro invocation is used as the name of the data section; if no label is specified, the name of the structure is used. DSECT=NO Assembler-language DC instructions are used to define the structure at the current position in the routine. The fields are initialized with values, which we can specify by coding the relevant parameters on the macro invocation. Fields for which no values are specified on the macro invocation are initialized with default values. DSECT=NO is assumed if the DSECT parameter is not specified.
Parent topic:
Coding in System/390 assembler language
fg11800_