View previous topic :: View next topic
|
Author |
Message |
rsshanmugam
New User
Joined: 08 Mar 2005 Posts: 62 Location: Basildon
|
|
|
|
How to Include compiler options like SSRANGE, LIST, XREF etc., in COBOL Program. |
|
Back to top |
|
|
somasundaran_k
Active User
Joined: 03 Jun 2003 Posts: 134
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
gorle_n4
New User
Joined: 11 Mar 2005 Posts: 8 Location: hyderabad
|
|
|
|
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 |
|
|
rsshanmugam
New User
Joined: 08 Mar 2005 Posts: 62 Location: Basildon
|
|
|
|
Thanks for all who took their valuable time to reply my queries. |
|
Back to top |
|
|
pbhaskar
New User
Joined: 15 Mar 2005 Posts: 2
|
|
|
|
you can code compiler options before identification division
like PROCESS SSRANGE,DYNAM,RMODE |
|
Back to top |
|
|
learnmf
Active User
Joined: 14 Mar 2005 Posts: 123
|
|
|
|
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 |
|
|
|