Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2504
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 CICS EZASOKET CONNECT using DNS name ankit.jain CICS 1 Tue Jan 16, 2018 7:24 pm
No new posts CICS web service from DB2 Triggers or... kiranprasad DB2 1 Wed Dec 20, 2017 11:10 am
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Is CICS BMS logic on z/OS different ... Andi1982 CICS 2 Fri Dec 01, 2017 1:56 pm
No new posts CA Intertest Batch 555shanth CA Products 0 Tue Nov 28, 2017 11:10 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us