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
 

 

COBOL Program as both ONLINE and BATCH??

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
abdul.faras

New User


Joined: 29 Feb 2008
Posts: 49
Location: Pune

PostPosted: Mon Apr 21, 2008 12:31 pm    Post subject: COBOL Program as both ONLINE and BATCH??
Reply with quote

Is it possible to have a program which serves both as ONLINE as well as BATCH?

If YES what changes this program should have?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10255
Location: italy

PostPosted: Mon Apr 21, 2008 12:33 pm    Post subject: Reply to: COBOL Program as both ONLINE and BATCH??
Reply with quote

Your interviewer forgot to specify the environment,
the answers is "DEPENDS"
Back to top
View user's profile Send private message
abdul.faras

New User


Joined: 29 Feb 2008
Posts: 49
Location: Pune

PostPosted: Mon Apr 21, 2008 12:39 pm    Post subject:
Reply with quote

What changes it would need in ONLINE and in BATCH?
Apart from removing Linkage Section for Batch.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Mon Apr 21, 2008 1:55 pm    Post subject:
Reply with quote

Quote:

Apart from removing Linkage Section for Batch.


the above comment makes no sense.


If a modules' intended usage is to be a sub-program CALLable from both online and batch, one should use a COBOL CALL, and the linkage would be that which is necessary for the subprogram to perform its function.
If a module is intended to be used in both batch and online, there is no need to reference EIB fields or DFHcomm fields. A copybook, defining the data necessary for the submodule, should be created and used.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Mon Apr 21, 2008 2:27 pm    Post subject:
Reply with quote

In general you should avoid CICS sentences and Sequential FILEs.
Back to top
View user's profile Send private message
abdul.faras

New User


Joined: 29 Feb 2008
Posts: 49
Location: Pune

PostPosted: Mon Apr 21, 2008 3:19 pm    Post subject:
Reply with quote

Thank you all for replies.......
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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