We use Endevor to compile the COBOL programs. Is there any way to know what are the variables in the working storage section that are used in the procedure division of cobol program and what variables are not used?
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
I believe it's an option for the PARM associated with the compiler-name. NOOPT is the compile default and if it's not specified in the PARM list, then you can also specify OPT(FULL), by inserting a CBL card above the IDENTIFICATION DIVISION of the program, beginning in position 01 as -
Or, you can add OPT(FULL) to the PARM list itself.