MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stored Procedures Calling CICS Trans?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Troodon
Beginner


Joined: 10 Sep 2004
Posts: 9
Topics: 4
Location: Johannesburg, Gauteng, South Africa

PostPosted: Thu Oct 14, 2004 10:27 am    Post subject: Stored Procedures Calling CICS Trans? Reply with quote

Can A DB2 Stored procedure call a CICS Transaction and get data back from the CICS Tran?

Why?

Although CICS transactions can execute Stored Procedures, they cannot pass result sets back down the chain to a Java Front End (Open to correction).

Stored Procedures cannot access VSAM Files (Open to Correction).

I am curious If a stored procedure could invoke CICS Transactions, and get a response, then a Stored procedure could have all the functionality of a CICS Task, as wel as the flexibility of returning result sets back to a Java/VB/Whatever Frontend. Also some legacy functionality may still be availble through the Stored procedure functionality.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Oct 14, 2004 10:55 am    Post subject: Reply with quote

Troodon,

You can access VSAM files, flat files, and CICS transactions, from a stored procedure. The non-DB2 resource must be available to the stored procedures address space. Thus if you are accessing VSAM files or flat files, you need a JCL DD statement in the stored procedures address space JCL procedure for every file that the stored procedure accesses.

Stored procedures can access CICS systems by using one of these methods:

  • Message Queue Interface (MQI)
  • External CICS Interface (EXCI)
  • APPC


Check out chapter 7 in the following red book which explains in detail about the above mentioned methods.

http://www.redbooks.ibm.com/redbooks/pdfs/sg245485.pdf

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group