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

Need to find the region name


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Fri Apr 19, 2013 2:32 am
Reply with quote

Quote:
Why does the code care which "region" is true? If it is running at all, the "region" is valid. I suspect that the WHEN OTHER would never be processed.


Qa has many SYSID like, DSNX(not for us at all but for the other team and they should not call this TRX),DSNA is only one where out group of people are working and all of out apps are installed. so OTHER condition still holds true if it is not DSNA(QA)/DSNP(PROD).

Hope I am explaing the reasons in the right way..
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sun Apr 21, 2013 5:51 pm
Reply with quote

Sometimes, some programs need to know where they are running.
Here is something I proposed to my boss:
  1. Use a INITPARM. For example:
    in all CICS test regions: INITPARM=(GETRGNTP='TEST')
    in all CICS prod regions: INITPARM=(GETRGNTP='PROD')

  2. Write a small routine that reads the INITPARM and returns the value.
    (see INITPARM and INITPARMLEN options in the ASSIGN command)
    in this case, the routine name is GETRGNTP and, when called, will return TEST, PROD or whatever value.
My proposition was refused and now, instead of that, these programs have to do an ASSIGN APPLID and check for patterns.
I still think my idea was better...
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Mon Apr 22, 2013 9:53 am
Reply with quote

Yeah...I do like your idea.. but admin people do not like to play around the region parameters...so better get it done in the application programming ( thats is what we hear from them)...icon_smile.gif
Back to top
View user's profile Send private message
Bala_real

New User


Joined: 08 Jun 2013
Posts: 1
Location: india

PostPosted: Thu Jun 13, 2013 2:35 pm
Reply with quote

As you aware that the program you mentioned will be invoked via some transaction.

you can go and check the transaction in which region it is defined.

if transaction in 1st region then cics will execute program defined in CICSQA1.
if transaction in 2nd region then cics will execute program defined in CICSQA2.
same as for others.

if your transaction is defined in 1st region only
then CICSQA2 and CICSQA3 programs will not get execute unless these two entries remotely defined to 1st region. vice versa for others.

i hope it is clear.
icon_smile.gif
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 To find whether record count are true... DFSORT/ICETOOL 6
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
No new posts CICS region is terminated abnormally ... CICS 2
Search our Forums:

Back to Top