I'm in a CICS screen, I want to know which login id I have logged into.
Actually I have configured one user id at the resource adapter of the application server to get the terminal installed. On click of any transaction my application would prompt me for entering a user id details.
Now I want to know whether I'll be logged into with the user id I have configured in the adapter level or the user id i have given in the log on page.
Thanks for your help.
For terminal tasks where a user has not signed on, the user ID is the CICS user ID associated with the terminal and is either:
The default CICS user ID as specified on the CICS parameter DFLTUSER SIT
A preset security user ID specified on the terminal definition
For non-terminal tasks, the CICS adapter tries to get a user ID with an EXEC CICS ASSIGN command. If this is unsuccessful, the adapter tries to get the user ID using EXEC CICS INQUIRE TASK. If security is active in CICS, and the non-terminal attached transaction is defined with CMDSEC(YES), the CICS adapter passes a user ID of blanks to WebSphere MQ.
EXEC CICS ASSIGN USERID(user-id) END-EXEC.
in working storage section
77 USERID PIC X(8).