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 

how to access the CICS region name in the program

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


Joined: 03 Jan 2007
Posts: 13
Topics: 6
Location: Hyderabad,India

PostPosted: Tue Jul 17, 2007 5:10 am    Post subject: how to access the CICS region name in the program Reply with quote

Hi,

I have four CICS regions in my application system.

I have one program for all four regions, I need to get the region name dynamically.

according to the region name I need to change the screen name.

So How do I get the region name from the program?

Thanks,
Basheer.
Back to top
View user's profile Send private message Yahoo Messenger
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Tue Jul 17, 2007 5:19 am    Post subject: Reply with quote

Would you settle for SYSID(data-area)
returns the 4-character name given to the local CICS system. This value may be specified in the SYSID option of a file control, interval control, temporary storage, or transient data command, in which case the resource to be accessed is assumed to be on the local system.
?
Back to top
View user's profile Send private message
basheerbaba
Beginner


Joined: 03 Jan 2007
Posts: 13
Topics: 6
Location: Hyderabad,India

PostPosted: Tue Jul 17, 2007 6:26 am    Post subject: How do I get the region name from the program? Reply with quote

Hi CICS guy,

Thanks for quick reply

Can you please give some example for SYSID,

How we can code in COBOL program.


Thanks,
Basheer.
Back to top
View user's profile Send private message Yahoo Messenger
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Jul 17, 2007 6:28 am    Post subject: Reply with quote

CICS Guy,
I was waiting for basheerbaba's response. (lolarotf)
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Tue Jul 17, 2007 6:56 am    Post subject: Re: How do I get the region name from the program? Reply with quote

basheerbaba wrote:
Can you please give some example for SYSID,
How we can code in COBOL program.
Have you "clicked" on the "SYSID" description?
Have you looked at the CICS Transaction Server for z/OS Application Programming Reference?
Have you tried to CECI the ASSIGN?
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Jul 17, 2007 7:46 am    Post subject: Reply with quote

CICS Guy,

I think basheerbaba's problem is that his module is invoked, he has not sent a screen (so he can't receive it), makes no sense to do a TD write just to do a TD REAd.

What I think is the people who designed the routing methodology forgot half the cake.

I doubt that the terminals are hard wired to a cics region. (if so, then he just has to play with a terminal table). I also doubt that there are 4 tranids that invoke his module. Some module, someplace intercepted the tranid - and based on something, picked a particular region and routed the transaction there, invoking his module. Why they did not send a little bit a data along to tell him what is going on, I have no idea. And that is what I would suggest that he do: tell his people to do the routing properly. Somebody has already decided which region to go to, why make his module do it again????
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Jul 17, 2007 7:52 am    Post subject: Reply with quote

there is also the possibility that there are different masterfiles/DB's on each region, which mean basheerbaba needs to read/fetch a control record.

it is, also, possible that basheerbaba only understood part of his assignment and the routing to his module already includes a msg telling him who he is supposed to be. He only needs to receive his msg.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 315
Topics: 49
Location: Germany

PostPosted: Wed Jul 18, 2007 1:02 am    Post subject: Reply with quote

This PL/1 Code

Code:


DCL CVT_ADDR_INIT     BIN FIXED(31) INIT(16),
    CVT_ADDR          PTR BASED(ADDR(CVT_ADDR_INIT)),
    CVT_PTR           PTR BASED(CVT_ADDR) ;

DCL 1 CVT             BASED(CVT_PTR),
       2 LIST_PTR     PTR ;

DCL 1 TCB_LIST        BASED(LIST_PTR),
       2 NEXT_TCB     PTR,
       2 CURR_TCB     PTR;

DCL 1 TCB             BASED(CURR_TCB),
       2 FILLER       CHAR(12),
       2 TIOT_PTR     PTR;

DCL 1 TIOT            BASED(TIOT_PTR),
       2 JOBNAME    CHAR(8) ,
       2 STEPNAME   CHAR(8) ,
       2 STEPNAME2  CHAR(8) ;




retrievs the jobname / stepname which executes the invoking program.

Using this code in a cics program you will receive the cics job name of the cics region which executes the calling program.

My be this helps.

bauer
Back to top
View user's profile Send private message
Earl
Beginner


Joined: 09 Jun 2007
Posts: 26
Topics: 1

PostPosted: Wed Jul 18, 2007 5:21 pm    Post subject: Reply with quote

COBOL


WORKING STORAGE SECTION.
01 WS-SYSID PIC X(04) VALUE SPACES.

PROCEDURE DIVISION.

EXEC CICS ASSIGN SYSID (WS-SYSID) END-EXEC.
Back to top
View user's profile Send private message
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