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

Saving compiler, Linkedit options in the code.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Sun Aug 27, 2006 11:36 pm
Reply with quote

I have specific compiler andlink-edit options to be used to compile my cobol code.
Is there a way to specify the compiler and link-edit options in the cobol code itself so that I need not bother about this while compiling?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Aug 28, 2006 12:47 am
Reply with quote

Don't know about Link-Editing, but you can use Compiler options in your COBOL source (aka Directives).

O.
Back to top
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Mon Aug 28, 2006 7:20 am
Reply with quote

Thanks a lot!

Where do we place this in the code? is it above the identification division?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Aug 28, 2006 8:30 am
Reply with quote

The general rule is to place them immediatly before the 1st stmt of the pgm (the ID stmt). There are some 3rd party s/w products that require their own cntl stmts before the pgm code. You may have to experiment to determine what the pecking order might be.
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 How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top