I am working in a CICSPLEX environment with the local region (say CICSABCD) connected to a remote region (say CICS1234). On an application running in the local region, is there any way where I can identify the local region id (CICSABCD). I tried using the EXEC CICS ASSIGN APPLID command, but this fetches me the id of the remote region (CICS1234) instead of the local region (CICSABCD).
Please suggest a method to get the local region id (CICSABCD) displayed on the application running in the local region.
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
Probably u could try the ASSIGN NETNAME option.
returns the 8-character name of the logical unit in the VTAM network. If the task is not initiated from a terminal, INVREQ occurs. If the principal facility is not a local terminal, CICS no longer returns a null string but the netname of the remote terminal.
If this command was issued by a user transaction which was started by a 3270 bridge transaction, the value returned is the termid of the bridge facility.
If the CICS region supports VTAM LU aliases, the NETNAME returned by CICS could be an LU alias, either dynamically allocated
I am not sure about this... Not able to test any program here now... but anyway this is what i found in the manuals. Please ignore my reply if this is not what u were looking for...
and next time... CICS related queries you could post in the CICS forums probably..
Joined: 06 Jun 2008 Posts: 8214 Location: Dubuque, Iowa, USA
Binop, the request was for the CICS region id and you're providing an answer about the terminal id. These are not the same thing at all.
Ankit: if I were you, I'd go into the region and enter CECI ASSIGN and hit the enter key twice (once to bring up the command, once for CICS to return all the assigned values). If one of the returned values is the value you need, that's the field to use in your program. If none of them has the value you need, you may not be able to retrieve the value using CICS commands.
I found out that it will be the Application Owning Region (AOR) which will be displayed in the CICSPLEX environment. Forgot to post the reply here.
In the example that I quoted in the question, CICS1234 was the Application Owning Region (AOR) for my application and hence it will always be the CICS1234 region id that would be displayed for the command EXEC CICS ASSIGN APPLID.
Hence, even though CICSABCD was the local region id, CICS1234 was the AOR and hence CICS1234 will be displayed on the application running in the local region CICSABCD.