View previous topic :: View next topic
|
Author |
Message |
raj_mainframe08
New User
Joined: 11 Sep 2007 Posts: 65 Location: Gurgaon
|
|
|
|
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? |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Compile the program using the OPT(FULL) option.
Are you using NOOPT?
OPT may not be an option that is approved to be used in your Production environment, so you need to verify this.
Bill |
|
Back to top |
|
|
raj_mainframe08
New User
Joined: 11 Sep 2007 Posts: 65 Location: Gurgaon
|
|
|
|
Can you please help me how/where can i specify OPT(FULL) in Endevor? |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
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.
Bill |
|
Back to top |
|
|
raj_mainframe08
New User
Joined: 11 Sep 2007 Posts: 65 Location: Gurgaon
|
|
|
|
Thanks Bill for the help. I will be able to check now what are the variables that are being used in the procedure division. |
|
Back to top |
|
|
|