Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Retrieving User ID and Cics region ID

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Retrieving User ID and Cics region ID
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: 1713
Location: UK

PostPosted: Tue Jul 09, 2013 9:30 pm    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Tue Jul 09, 2013 10:27 pm    Post subject:
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    Post subject: Reply to: Retrieving User ID and Cics region ID
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: 7908
Location: Bellevue, IA

PostPosted: Wed Jul 10, 2013 10:11 pm    Post subject:
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    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Thu Jul 11, 2013 4:49 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts CICS VSAM RLS READ akodakka CICS 3 Tue Oct 04, 2016 3:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us