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
 

 

Calling the same code in batch and CICS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Calling the same code in batch and CICS
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

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Mon May 11, 2009 12:39 pm    Post subject:
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: 7995
Location: Bellevue, IA

PostPosted: Mon May 11, 2009 4:58 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Batch job tunning sgandhla Testing & Performance analysis 0 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm


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