IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

Retrieving User ID and Cics region ID


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

New User


Joined: 02 Mar 2012
Posts: 48
Location: India

PostPosted: Tue Jul 09, 2013 9:02 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2429
Location: Hampshire, UK

PostPosted: Tue Jul 09, 2013 9:30 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Jul 09, 2013 10:27 pm
Reply with quote

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
View user's profile Send private message
dudenithy

New User


Joined: 02 Mar 2012
Posts: 48
Location: India

PostPosted: Wed Jul 10, 2013 8:03 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed Jul 10, 2013 10:11 pm
Reply with quote

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
View user's profile Send private message
colin777

New User


Joined: 06 Jun 2013
Posts: 19
Location: Singapore

PostPosted: Thu Jul 11, 2013 3:22 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Jul 11, 2013 4:49 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CICS
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. Sample CICS Webservices Program CICS 1
No new posts parmeter existence bit for URIMAP in ... CICS 2
No new posts How to use CICS command CEBR on sdsf ... CICS 1
No new posts CICS file processing using applicatio... CICS 3
No new posts CICS Web services Assistant - Handlin... CICS 3

Back to Top