Adding a compiler option for debug

You might want to add a compiler option for generating side files for debug for a project build having COBOL source files.

Assume that the COBOL compilation procedure at your location is customized so that the compiler parameters are as follows:
(ADEXIT(ELAXMGUX)),ADATA,LIB,TESTPARM
Note: ELAXMGUX is necessary for error feedback. Using ELAXMGUX causes compiler, syntax check, and build errors to be displayed in the task list.

Suppose you want to generate side files for debug and are using COBOL source files in the project build. On the JCL Substitution page for COBOL settings, you would add PARM as the variable name and the option for the variable value.

The generated JCL for the project build has a SET statement with PARM=option specified before the EXEC PROC statement, which is substituted during the execution of the PROC.