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 

Accessing CICS Regions

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
haseen_mohammed
Beginner


Joined: 20 Feb 2006
Posts: 27
Topics: 14

PostPosted: Mon Aug 13, 2007 8:33 am    Post subject: Accessing CICS Regions Reply with quote

Hi All,

Please find my question below.

There are 3 regions X, Y and Z. Assume program A resides in X and links to program B. B is supose to reside in both X and Y. A can determine which region it is suppose to link using say, Bank-ID. i.e. it will get the bank-id and know if it needs to communicate to B in Y or B in Z. I guess, as B cannot be remotely defined poiting to two regions in X, there needs to be a twist in the way A would link to B.

Currently there are two approaches which comes to my mind.

Approach 1:
1. Program A in X determines which region it is suppose to link and will know the SYSID. There will be static table which would map bank-ids with SYSID.
2. Program A will allocate connection with that SYSID using ALLOCATE command
3. Program A will then talk to program B using CONVERSE command
4. Program B will not need any remote definitions in A

Approach 2:
1. Let B1 and B2 be two dummy programs.
2. B1 will be remotely defined in region X pointing to region Y
3. B2 will be remotely defined in region Y pointing to region Z
4. B, B1 will be locally defined in Y
5. B, B2 will be locally defined in Z
6. A based on Bank-ID would link to B1 or B2
7. In Y, B1 will be mirrored to B so that B gets linked.
8. In Z, B2 will be mirrored to B so that B gets linked.

I am not sure how much will CICS will allow for approach 2. Just wanted to know if this is technically possible.

Also, if approach 1 is fesible. Examples for the same would be helpful

Any other simpler approach would also be helpful for me.

Hopefully I am clear with my Question.

Regards,
Akshay
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Aug 13, 2007 8:40 am    Post subject: Reply with quote

haseen_mohammed,

You need Dynamic Transaction Routing . Check these links

http://publib.boulder.ibm.com/infocenter/txformp/v6r0m0/index.jsp?topic=/com.ibm.cics.te.doc/erziad0097.htm

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHZTA02/CCONTENTS?DT=19950307105304

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 -> CICS and Middleware 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