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 How do you attach a DB2 plan to a CIC... John Poulakos DB2 0 Wed Apr 18, 2018 1:49 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts How do I define a DB2 plan for a web ... John Poulakos CICS 4 Sat Apr 14, 2018 1:58 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts Mantis Program Compiled? luis carlos CICS 2 Sat Apr 07, 2018 8:59 pm

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