Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Practical use of BASIS compiler option

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Practical use of BASIS compiler option
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: 7931
Location: Bellevue, IA

PostPosted: Mon Apr 19, 2010 5:04 pm    Post subject:
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    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
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Any docs / links for isub- cobol comp... SRICOBSAS COBOL Programming 4 Fri Aug 26, 2016 2:35 pm
No new posts Problem Compiling cobol code with Cob... amitc23 COBOL Programming 2 Wed Aug 24, 2016 1:50 pm
No new posts COBOL compiler upgrade vicky10001 COBOL Programming 4 Mon Jul 25, 2016 1:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us