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 Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

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