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

Practical use of BASIS compiler option


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

New User


Joined: 03 Aug 2006
Posts: 9

PostPosted: Mon Apr 19, 2010 4:52 pm
Reply with quote

I was going through the compiler option BASIS in the IBM COBOL Manual

It says "The BASIS statement is an extended source program library statement. It provides a complete COBOL program as the source for compilation."

Is this option used when we want to compile more than one COBOL programs in a single program.

And if so..do we need to link these programs at a later stage if they are compiled together?

Also does the program referred by BASIS statement become a part of the main program, like a PROC is embedded in the JCL while running?

What are the changes we need to make to JCL to include BASIS statement in our program?

Thanks and Regards
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Apr 19, 2010 5:04 pm
Reply with quote

BASIS is more a source code management tool for those who do not have one of the vendor tools. You can use a BASIS statement with associated INSERT and DELETE statements to determine what the source code is that you are compiling. The BASIS code does not become part of the main program, it is the main program -- and the entire program.
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 SCOPE PENDING option -check data DB2 2
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts CICS vs LE: STORAGE option CICS 0
No new posts INSYNC option with same function as I... JCL & VSAM 0
Search our Forums:

Back to Top