gtpp2m0t | Programming Standards |
When you complete a DSECT definition, resume the previous control section
(whether CSECT or DSECT). The method used to resume the previous
control section depends on the mechanism that is used to define the
DSECT:
- If the DSECT is defined inline in a CP segment, use &CONPRO
CSECT to resume the CP CSECT.
- If the DSECT is defined inline in an assembler real-time segment, use
$IS$ CSECT to resume the real-time CSECT.
- If the DSECT is defined inline in an assembler object file included in an
ISO-C load module, use &CG2 CSECT to resume the C load module
CSECT.
- Note:
- This requires you to have explicitly included a GBLC &CG2
statement in the C load module.
- If the DSECT is defined in a macro definition, use &SYSECT
&SYSSTYP in the macro definition to resume the control section that
was in effect when the macro was called.