IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Where to code COBOL Compiler Option


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts run rexx code with jcl CLIST & REXX 15
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top