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: 54
Location: Chennai

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: 54
Location: Chennai

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
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am

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