Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
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
 
CICS Program calling a DB2 program

 
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: Mon Dec 27, 2010 7:14 pm    Post subject: CICS Program calling a DB2 program
Reply with quote

Hi All

I have CICS PROG A which should link/call a another PROG B which is DB2 prog( will retrieve data from tables and pass that to prog A)

My doubt here is ..is the PROG A can use LINK to call PROGB OR can i use use CALL to PROG B. ( My system is an online processing )..
Which one is the best option here...

2) Is my prog B is a batch program if i use CALL instead of link or this should be called as CICS-DB2 program


Please advise
Back to top
View user's profile Send private message

Manigandan Aravindhan

New User


Joined: 09 Oct 2007
Posts: 81
Location: India

PostPosted: Mon Dec 27, 2010 9:44 pm    Post subject: Reply to: CICS Program calling a DB2 program
Reply with quote

You cannot invoke a batch program from CICS, If your ProgB is a batch program then double link edit(Compile it as online as well) the same. Then use Link to call a ProgB.


Thanks,
Manigandan
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Dec 28, 2010 2:39 pm    Post subject:
Reply with quote

Manigandan wrote:
You cannot invoke a batch program from CICS, If your ProgB is a batch program then double link edit(Compile it as online as well) the same. Then use Link to call a ProgB.


that is old and no longer true. That was the methodology used in the 1970's/80's, but since the 1990's you nolonger need to use the double module silliness anymore.

there are topics in the forum that discuss where the load libraries of the batch programs in the CICS JCL need to be located.

You can issue a COBOL CALL in a CICS program to a batch module. The same batch load module can be CALLed from another batch module.

This/can be accomplished with dynamic CALL's.

I have worked on systems that have 10, 15 levels of dynamic batch CALL's that work both in CICS and batch.

I have also (am currently) worked on systems that have this double module crap.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Dec 28, 2010 8:46 pm    Post subject: Reply to: CICS Program calling a DB2 program
Reply with quote

Hi Dick,

In inventory we see LIFO and FIFO.

In code we see WORF - (Write Once, Run Forever) icon_smile.gif
And many of these that are still running were intended to be a stop-gap measure until the "real" code could be completed. . .

d
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 FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 0 Mon Sep 18, 2017 4:31 pm
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts Need to track the CICS transaction fr... sam8051 CICS 3 Mon Aug 07, 2017 3:11 pm
No new posts Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us