Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Where to code COBOL Compiler Option

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Sun Mar 27, 2005 7:34 am    Post subject: Where to code COBOL Compiler Option
Reply with quote

How to Include compiler options like SSRANGE, LIST, XREF etc., in COBOL Program.
Back to top
View user's profile Send private message

somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Sun Mar 27, 2005 9:01 pm    Post subject:
Reply with quote

rsshanmugam
Try coding your compiler option as the first code in your program before the IDENTIFICATION DIVISION.
Code:

CBL LIST                                     
IDENTIFICATION DIVISION.


hth
-Som
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Mar 28, 2005 12:55 am    Post subject:
Reply with quote

Hi rsshanmugam,

You can also specify compile options in the PARM clause fo the EXEC JCL
stmt that executes the compiler step.

It's worth noting that some options shouldn't be specified in the CBL stmt preceding the pgm code. LIST and SSRANGE are good examples.

Because option values stated in the CBL stmt override those stated in the JCL PARM. Since SSRANGE is used by developers for debugging and its reputation as performance degrader it's not a good idea to use it in production. The LIST option provides the assembler expansion of all COBOL stmts producing an expanded listing.

On the other hand some options should (in my opinion) be invoked by the CBL stmt. Some options are required to allow a pgm to operate the way the developer desires (the TRUNK option comes to mind). I options like these are invoked in the JCL the need for them can be lost over time and execution errors can result (sometimes undetected!).
Back to top
View user's profile Send private message
gorle_n4

New User


Joined: 11 Mar 2005
Posts: 8
Location: hyderabad

PostPosted: Mon Mar 28, 2005 11:50 am    Post subject: How to Include compiler options like SSRANGE, LIST, XREF etc
Reply with quote

u can do it by using parm parameter in jcl.
mention in step as parm= ssrange.
actuall y u no need to use these options bcoz version controller tool will take care of it.
Back to top
View user's profile Send private message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Mon Mar 28, 2005 10:18 pm    Post subject:
Reply with quote

Thanks for all who took their valuable time to reply my queries.
Back to top
View user's profile Send private message
pbhaskar

New User


Joined: 15 Mar 2005
Posts: 2

PostPosted: Tue Mar 29, 2005 3:12 pm    Post subject: Re: Where to code COBOL Compiler Option
Reply with quote

you can code compiler options before identification division
like PROCESS SSRANGE,DYNAM,RMODE
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Tue Mar 29, 2005 8:03 pm    Post subject:
Reply with quote

Quote:
How to Include compiler options like SSRANGE, LIST, XREF etc., in COBOL Program.


Hi friend
you can do it different ways.
1. By using CBl in cobol program
2 Or you can pass the parameter using Parm option
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to display offset thru cobol prog... tvinodkumar7 CICS 2 Sun Apr 22, 2018 8:42 pm
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts Getting GG return code abdulrafi IMS DB/DC 2 Tue Apr 10, 2018 12:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us