IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Capturing local CICS region ID in CICSPLEX environment


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ankit.jain

New User


Joined: 02 Jul 2009
Posts: 18
Location: Mumbai

PostPosted: Tue Aug 25, 2009 2:27 pm
Reply with quote

Hi,

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.

Thanks in advance.
Ankit
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Tue Aug 25, 2009 3:08 pm
Reply with quote

Hi Ankit,

Probably u could try the ASSIGN NETNAME option.

Quote:
NETNAME(data-area)
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... icon_wink.gif

and next time... CICS related queries you could post in the CICS forums probably.. icon_smile.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Aug 25, 2009 3:23 pm
Reply with quote

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.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Aug 25, 2009 4:32 pm
Reply with quote

ASSIGN SYSID(WS-SYSID) ?
Back to top
View user's profile Send private message
ankit.jain

New User


Joined: 02 Jul 2009
Posts: 18
Location: Mumbai

PostPosted: Tue Sep 08, 2009 12:21 pm
Reply with quote

Thank you all for the replies!!!

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. icon_mad.gif

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.

Thanks!
Ankit
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Rexx log capturing CLIST & REXX 15
Search our Forums:

Back to Top