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

CALL a batch program from CICS


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Mar 03, 2011 9:02 pm
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
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 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 How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
Search our Forums:

Back to Top