| Author |
Message |
abdul.faras
New User
Joined: 29 Feb 2008 Posts: 15 Location: Pune
|
|
|
|
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 |
|
 |
References
|
Posted: Mon Apr 21, 2008 12:31 pm Post subject: Re: COBOL Program as both ONLINE and BATCH?? |
 |
|
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 1845 Location: italy
|
|
|
|
Your interviewer forgot to specify the environment,
the answers is "DEPENDS" |
|
| Back to top |
|
 |
abdul.faras
New User
Joined: 29 Feb 2008 Posts: 15 Location: Pune
|
|
|
|
What changes it would need in ONLINE and in BATCH?
Apart from removing Linkage Section for Batch. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 903 Location: germany
|
|
|
|
| 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 |
|
 |
acevedo
Active User
Joined: 11 May 2005 Posts: 252 Location: Spain
|
|
|
|
| In general you should avoid CICS sentences and Sequential FILEs. |
|
| Back to top |
|
 |
abdul.faras
New User
Joined: 29 Feb 2008 Posts: 15 Location: Pune
|
|
|
|
| Thank you all for replies....... |
|
| Back to top |
|
 |
|
|