View previous topic :: View next topic
|
Author |
Message |
akodakka
New User
Joined: 20 May 2010 Posts: 75 Location: India
|
|
|
|
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 |
|
|
akodakka
New User
Joined: 20 May 2010 Posts: 75 Location: India
|
|
|
|
sorry for using short name
PDS1 library - PROGA
PDS2 libraray - progb |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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.
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.
Bill |
|
Back to top |
|
|
akodakka
New User
Joined: 20 May 2010 Posts: 75 Location: India
|
|
|
|
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 |
|
|
|