Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Working Storage varaibles in Procedure Division

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
raj_mainframe08

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Sat Jan 30, 2010 11:07 pm    Post subject: Working Storage varaibles in Procedure Division
Reply with quote

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
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sat Jan 30, 2010 11:21 pm    Post subject: Reply to: Working Storage varaibles in Procedure Division
Reply with quote

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
View user's profile Send private message
raj_mainframe08

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Sat Jan 30, 2010 11:32 pm    Post subject:
Reply with quote

Can you please help me how/where can i specify OPT(FULL) in Endevor?
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sat Jan 30, 2010 11:38 pm    Post subject: Reply to: Working Storage varaibles in Procedure Division
Reply with quote

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 -

Code:

CBL OPT(FULL)

Or, you can add OPT(FULL) to the PARM list itself.

Bill
Back to top
View user's profile Send private message
raj_mainframe08

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Sun Jan 31, 2010 12:02 am    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts GETMAIN / FREEMAIN versus STORAGE OBT... steve-myers PL/I & Assembler 8 Wed Feb 01, 2017 1:45 am
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us