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: 995
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: 8057
Location: East Dubuque, Illinois, USA

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 Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 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 CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm


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