haseen_mohammed Beginner
Joined: 20 Feb 2006 Posts: 27 Topics: 14
|
Posted: Mon Aug 13, 2007 8:33 am Post subject: Accessing CICS Regions |
|
|
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 |
|