CSECT

The CSECT option ensures that the object module, if generated, contains named CSECTs.

Use this option if you use SMP/E to service your product or to help debug your program.

Read syntax diagramSkip visual syntax diagram
   .-CSECT---.   
>>-+-NOCSECT-+-------------------------------------------------><

ABBREVIATIONS: CSE, NOCSE

Under the NOCSECT option, the code and static sections of your object module are given default names.

Under the CSECT option, the code and static sections of your object module are given names that depend on the "package name", which is defined as follows:

A "modified package name" of length 7 is then formed as follows:

The code csect name is built by taking the modified package name and appending a 1 to it.

The static csect name is built by taking the modified package name and appending a 2 to it.

So, for a package named SAMPLE, the code csect name is *SAMPLE1, and the static csect name is *SAMPLE2.