View previous topic :: View next topic
|
Author |
Message |
tomehta
New User
Joined: 18 Aug 2008 Posts: 98 Location: India
|
|
|
|
Hi
I have a conceptual doubt which I want to clarify.
Can I use same program ( with same name) in a batch job as well as cics transaction ( say a called program from cics code) .
To my mind we can not do it. If its correct. I would like to know the reason at the system/os level. Any links to thread, documentation will be much appreciated.
thanks
Rohit |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
You can call the same program from batch and CICS provided the called program does not contain any EXEC CICS Commands.
Garry. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You can call the same program from batch and CICS provided there is provision made for the EXEC CICS commands and I/O statements (which includes the SELECT statements, FILE SECTION entries, and PROCEDURE DIVISION entries. Applications using the same program in batch and CICS generally isolate I/O into a subroutine that is called from the common program; the subroutine varies according to environment. |
|
Back to top |
|
|
|