Under TSO

If you have REXX installed, you can run the DSECT utility under TSO by using the CDSECT EXEC. The format of the parameters for the CDSECT EXEC is:

Read syntax diagramSkip visual syntax diagram
>>-CDSECT--infile--outfile-------------------------------------->

>--+------------------------------------------+----------------><
   | .-,----------.                           |   
   | V            |                           |   
   '---+--------+-+--+----------------------+-'   
       '-option-'    |      .-,-----------. |     
                     |      V             | |     
                     '-ASM----+---------+-+-'     
                              '-asmopts-'         

where infile specifies the file name of the assembler source program containing the required section. outfile specifies the file that the structure produced is written to, and option is any valid DSECT utility option. If you specify ASM, any following options must be High-Level Assembler options. The ADATA is specified by default.

Figure 1. Running the DSECT Utility under TSO
  KNOWN:   - The assembler source name is FRED.SOURCE(TESTASM).
           - The structure is to be written to FRED.INCLUDE(TESTASM).
           - The required DSECT Utility options are EQU(BIT).

  USE THE FOLLOWING COMMAND:
           CDSECT 'FRED.SOURCE(TESTASM)' 'FRED.INCLUDE(TESTASM)' EQU(BIT) 

When the CDSECT command is executed, the High Level Assembler is executed with the required options. The DSECT utility is then executed with the specified options. A report of the options and any error messages will be displayed on the terminal.

If the assembler source requires macros or copy members from a macro library, issue the ALLOCATE command to allocate the required macro libraries to the SYSLIB DD statement before issuing the CDSECT command.