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
 

 

CALL a batch program from CICS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
akodakka

New User


Joined: 20 May 2010
Posts: 75
Location: India

PostPosted: Thu Mar 03, 2011 7:46 pm    Post subject: CALL a batch program from CICS
Reply with quote

Hi All

I need to CALL a non-cics program from my CICS programs.

PROG A ----CALL -----PROG B

ProgA is in lib PDS1 in the cics region and ProgB is in PDS2. So do i need to add PDS2 ib in my region concatination for calling PROGB
Back to top
View user's profile Send private message

akodakka

New User


Joined: 20 May 2010
Posts: 75
Location: India

PostPosted: Thu Mar 03, 2011 7:47 pm    Post subject:
Reply with quote

sorry for using short name

PDS1 library - PROGA

PDS2 libraray - progb
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Mar 03, 2011 9:02 pm    Post subject: Reply to: CALL a batch program from CICS
Reply with quote

Yes, you would have to add the library where the program resides to the CICS/DFHSIP load lib concatenation.

You have two choices to access this sub-program -

01) CICS (not an MVS) Dynamic CALL (explicit PPT entry or autoinstalled model)

02) Static CALL (PPT entry not required)

I'd go for the first one.

Calling a sub-program Statically can cause some real headscratching. icon_eek.gif

With that, it is highly recommended that Statically called sub-programs are passed reentrant WORKING-STORAGE from the CICS caller.

Otherwise, you may have some "opportunities" to deal with in the future, having introduced non-reentrant access to CICS. icon_wink.gif

Bill
Back to top
View user's profile Send private message
akodakka

New User


Joined: 20 May 2010
Posts: 75
Location: India

PostPosted: Tue Mar 08, 2011 6:01 pm    Post subject:
Reply with quote

Bill, Thanks for the reply and sory for late response

If i do a static call i don't need the library need to be addded in the regiion rite?

Yes anyway i will go with the second option you gave ..still just curious..


Thanks
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 tuning sgandhla Testing & Performance analysis 5 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 Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am


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