View previous topic :: View next topic
|
Author |
Message |
dudenithy
New User
Joined: 02 Mar 2012 Posts: 48 Location: India
|
|
|
|
Hello,
I have a requirement to display certain fields only when it is SIT and UAT environment and if transaction is trigerred by user, and it should not be displayed if its prod environment. I tried to find any EIB fields that shows the user ID or CICS (Environment) ID and couldn't find any (EIB block has no values except EIBDATE/EIBTIME).
Could you let me know how to get User ID / CICS ID (Enivronment name)? Thanks for replying |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
And when you searched? You did search the forum, didn't you? Because I found one post, on the first page of results, that was to do with determining the CICS region. A bit more searching and you may find out how to determine the user. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
What you are looking for is NOT stored in the EIB. However, it is definitely available -- search this forum, or search the CICS bookshelf. |
|
Back to top |
|
|
dudenithy
New User
Joined: 02 Mar 2012 Posts: 48 Location: India
|
|
|
|
Hi Rob & Nic,
Thanks for the reply. I searched the forum and i got some cics commands, but i need any field that gives the user id / region information, since i need to validate this in cics program. I will try to search again, but it would be good if you share if you have the forum post link. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
In the CICS bookshelf, there is a System Programmers manual. In that manual is described the EXEC CICS ASSIGN command, which allows you to retrieve the APPLID and USERID values for the CICS region. Many sites restrict access to SP (System Programmer) commands due to their potential for misuse; however, if you have a legitimate need for the data your site should be able to get you authorized to use the ASSIGN command. The APPLID (or SYSID) are unique to the region. |
|
Back to top |
|
|
colin777
New User
Joined: 06 Jun 2013 Posts: 19 Location: Singapore
|
|
|
|
Where in the CICS System Programmers manual does it mention anything about EXEC CICS ASSIGN?
The manual that describes the EXEC CICS ASSIGN is the CICS Transaction Server for z/OS Version 4 Release 2 Application Programming Reference, page 49. As it is not an SP command there is no need for authorization, it is part of the normal CICS API, available to any programmer that needs to use it.
Regards
Colin |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
The actual manual will depend upon the release of CICS being used. In the CICS 5.1 Information Library, the ASSIGN is included in the API command list. In any case, the ASSIGN command provides the data the TS wanted. |
|
Back to top |
|
|
|