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

Calling the same code in batch and CICS


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tomehta

New User


Joined: 18 Aug 2008
Posts: 98
Location: India

PostPosted: Mon May 11, 2009 11:37 am
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Mon May 11, 2009 12:39 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Mon May 11, 2009 4:58 pm
Reply with quote

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
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
Search our Forums:

Back to Top