SOURCE

Use SOURCE to get a listing of your source program. This listing will include any statements embedded by PROCESS or COPY statements.

SOURCE option syntax

Read syntax diagramSkip visual syntax diagramSOURCENOSOURCE

Default is: SOURCE

Abbreviations are: S | NOS

You must specify SOURCE if you want embedded messages in the source listing.

Use NOSOURCE to suppress the source code from the compiler output listing.

If you want to limit the SOURCE output, use *CONTROL SOURCE or NOSOURCE statements in your PROCEDURE DIVISION. Source statements that follow a *CONTROL NOSOURCE statement are not included in the listing until a subsequent *CONTROL SOURCE statement switches the output back to normal SOURCE format.

Example: MAP output

Related references  
*CONTROL (*CBL) statement (COBOL for Linux® on x86 Language Reference)