IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Best way to Capture Auth ID of the source application


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
VINAY PALLELA

New User


Joined: 28 Jan 2018
Posts: 24
Location: India

PostPosted: Fri Oct 08, 2021 9:22 pm
Reply with quote

Hi All,

Looking for the help on the best way to capture the AUTH ID of the Source application in mainframe DB2 programs.

We want to implicitly set a new flag based on the AUTH ID of the source application.
So that consumers who are hitting our application do not need to change there programs to send the new flag in the input.

We used the SQL commands
CURRENT CLIENT_APPLNAME
CURRENT USER
CURRENT CLIENT_USERID
CURRENT SQLID

EXEC SQL
SET : WS-CLIENT-USERID = CURRENT CLIENT_USERID
END-EXEC

But they are not working in some of the scenarios and there is a limitation to capture only 8 bytes of user ID.

OUR programs will be called from Mainframe batch, CICS, java, Dot net, web services etc.

2) Best way to maintain consumer's AUTH ID's list ?

It has to be fast and stable as our programs called hundreds and thousands of times a day by the down stream applications for data.

Please suggest the manuals on how we can do caching in the mainframe.

Thank you all in advance!!
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Sat Oct 09, 2021 6:23 pm
Reply with quote

SYSTEM USER OR SESSION USER or CURRENT CLIENT_WRKSTNNAME ? Also CUURENT USER is VARCHAR (128) why do you say 8 bytes only ?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts DB2 Event passed to the Application P... DB2 1
No new posts Rexx to capture output from TSO HSEND... CLIST & REXX 9
No new posts ISPF option 7.3 - can only see ISR ap... TSO/ISPF 6
No new posts To capture the job from savers CLIST & REXX 4
Search our Forums:

Back to Top