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
 

 

Retreiving CICS userid and password into the program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
mf_karthik

New User


Joined: 26 Jul 2005
Posts: 55

PostPosted: Fri Feb 29, 2008 11:23 am    Post subject: Retreiving CICS userid and password into the program
Reply with quote

hi all,
i need to retrieve the cics logon userid and password for validation purpose in my cobol program,is there any way to retreive ??
please let me know.
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri Feb 29, 2008 5:08 pm    Post subject:
Reply with quote

After signon, no.....
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sat Mar 01, 2008 1:38 am    Post subject: Retreiving CICS userid and password into the program
Reply with quote

If you knew the terminal-id that the user signed-on to, then you could obtain the userid via an INQUIRE TERMINAL command.

However, obtaining the user's password is highly irregular and perhaps, a violation of rules defined by your Security group.

I can understand the userid capture, but the password? I think you need to speak to someone at your site regarding this subject.

Perhaps you were misinformed (or misunderstood) the requirements?

Regards,

Bill
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Mar 01, 2008 2:16 am    Post subject:
Reply with quote

The user should have been validated when he logged on. I don't think any security group would allow you access to the passwords (which wouldn't be readable anyway).
Back to top
View user's profile Send private message
rpuhlman

New User


Joined: 11 Jun 2007
Posts: 80
Location: Columbus, Ohio

PostPosted: Sat Mar 01, 2008 4:13 pm    Post subject:
Reply with quote

You can retrieve the userid:

Code:
                                                                       
           EXEC CICS ASSIGN                                             
                USERID(WS-USERID)                                       
           END-EXEC.                                                   


Where WS-USERID is defined in working storage as PIC X(08).
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 IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm


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