View previous topic :: View next topic |
Author |
Message |
basheerbaba Beginner
Joined: 03 Jan 2007 Posts: 13 Topics: 6 Location: Hyderabad,India
|
Posted: Tue Jul 17, 2007 5:10 am Post subject: how to access the CICS region name in the program |
|
|
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 |
|
|
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
|
Back to top |
|
|
basheerbaba Beginner
Joined: 03 Jan 2007 Posts: 13 Topics: 6 Location: Hyderabad,India
|
Posted: Tue Jul 17, 2007 6:26 am Post subject: How do I get the region name from the program? |
|
|
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 |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Tue Jul 17, 2007 6:28 am Post subject: |
|
|
CICS Guy,
I was waiting for basheerbaba's response. (lolarotf) _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Tue Jul 17, 2007 6:56 am Post subject: Re: How do I get the region name from the program? |
|
|
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 |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Tue Jul 17, 2007 7:46 am Post subject: |
|
|
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 |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Tue Jul 17, 2007 7:52 am Post subject: |
|
|
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 |
|
|
bauer Intermediate
Joined: 10 Oct 2003 Posts: 315 Topics: 49 Location: Germany
|
Posted: Wed Jul 18, 2007 1:02 am Post subject: |
|
|
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 |
|
|
Earl Beginner
Joined: 09 Jun 2007 Posts: 26 Topics: 1
|
Posted: Wed Jul 18, 2007 5:21 pm Post subject: |
|
|
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 |
|
|
|
|