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
 

 

User Details using USERID

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
hsk

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Thu Oct 29, 2009 9:41 am    Post subject: User Details using USERID
Reply with quote

In my Rexx Exec I am using USERID to get the current user.

TSO WHOIS userid, displays the details of user like First Name, Last Name etc ....

Can get these details in my Exec,

something like

FNAME = (First name of user "USERID") ....

With name, WHOIS also gives details like DEPT,EXNT num.

I want to check if email-id of the user is stored anywhere,
and if it stores, is there any way to fetch that.

In Short when user executes my exec i want to display following details


USER ID -
Name - Lname Fname
Extn - (if any .... )
Email-Id - ...........
(normally this is fname.lname@organization.com .... but can be diff for diff users)


Is this possible
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 29, 2009 12:40 pm    Post subject:
Reply with quote

Quote:
In Short when user executes my exec i want to display following details

And the business requirement to find out this information is .......................
Back to top
View user's profile Send private message
hsk

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Thu Oct 29, 2009 12:54 pm    Post subject:
Reply with quote

expat wrote:
Quote:
In Short when user executes my exec i want to display following details

And the business requirement to find out this information is .......................



We are building some utility which will send some report to different user's. There is some std JCL which sends email thruo mail server, users have to pass email-id as parm and sub this jcl.

I am tring to execute the JCL thro' rexx exec. For this i need e-mail address. One option is to prmpt for email-id and let user specify. But in that case there is no way to validate the address. Also any user can send mail to anybody and utility will not have control.

Another option is identify the USERID. That HAS TO BE unique, get email id frmo that and send mail only to that id.

Hope that clarifies what i am trying to do !!!
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1504
Location: Chennai

PostPosted: Thu Oct 29, 2009 6:15 pm    Post subject:
Reply with quote

Hi,

Maybe the email parameter is a customisation at your shop for the WHOIS command.(I may be wrong here)
In our shop the o/p would look like,


Code:
---------------------------------------------------- XK89                     
User XK89 is VASANTH SHANMUGAM                                                 
and is in RACF Group GCDDLTST  last used on  09-10-28                         
Notes : VASANTH SHANMUGAM,IT PERM C/O SUNDARA VINAYAGAM,CONNECT               
Status Flags : NO  NO  NO  NO                                                 
---------------------------------------------------- XK89



This data is being fetched from a dataset called RAL.USERLIST.DATA. Which looks like,

Code:
  MAINFRAME USERIDS                                                             
                                                                               
SURNAME        FORENAME       USERID   DFLTGRP  INSTDATA                       
                                                                               
               XXXX           AI52     GCUSERV8 HID=WAS JADE MARTIN , LEFT 8 - 2
               XXXX           AI96     GCUSERV6 WAS KEVIN DORWARD,DUNDEE LEAVER
               XXXX           AP67     GCUSERV6 WAS VALERIE WILLIAMSON,DUNDEE LE
               XXXX           AV06     GCUSERV6 WAS STEPHEN FORBES,DUNDEE LEAVER


You can try to get the data from RAL.USERLIST.DATA if a similar dataset exists at your place.

Thanks & Regards,
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1504
Location: Chennai

PostPosted: Thu Oct 29, 2009 6:23 pm    Post subject:
Reply with quote

A More reliable method is,

Execute the command TS ISRDDN,
It will list all the datasets allocated to your ID.

Code:
SRS121   SHR,KEEP   >             SYS3.ISP.SISPTENU                           
SYSLB5   SHR,KEEP   >             ZZ.V1R1M0.ISPTLIB                           
KTSO10   MOD,CATLG  >    ISP12384 XK89.SPFLOG3.LIST                           
SYSLB5   SHR,KEEP   >    STEPLIB  ZZ.V1R1M0.ISPLLIB                           
SYSLB5   SHR,KEEP   >    SYSHELP  T****.HELP                                 
SRS121   SHR,KEEP   >             SYS1.HELP                                   
         NEW,DEL    >    SYSIN    ---------- Allocated to the terminal -------
         NEW,DEL    >    SYSPRINT ---------- Allocated to the terminal -------
KTSO14   SHR,KEEP   >    SYSPROC  XK89.XK.CLIST                               
PRODD2   SHR,KEEP   >             ZX.DEV.CLIST                               
SPCAT0   SHR,KEEP   >             T****.CMDPROC                               
SRS121   SHR,KEEP   >             SYS3.ISP.SISPCLIB                           
SRS121   SHR,KEEP   >             SYS3.ISP.SISPEXEC                           
SYSLB6   SHR,KEEP   >             ZA.DEV.CLIST                               
         NEW,DEL    >    SYSTERM  ---------- Allocated to the terminal -------


Look for all the datasets allocated under SYSPROC DD name.

Go inside them and search for WHOIS REXX memeber.
Inside the member you will have the source of the data.

Hope this helps. icon_smile.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Thu Oct 29, 2009 6:30 pm    Post subject:
Reply with quote

Contact your site security group. The user id is tied to name in the security package (RACF, ACF2, TOP SECRET) and there may (or may not) be an email address associated with it (probably not but these days it could be). The security group can tell you how to retrieve name (if you're allowed to) and so forth.
Back to top
View user's profile Send private message
hsk

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Fri Oct 30, 2009 11:45 am    Post subject:
Reply with quote

Thanks TANSTAAFL, Vasanth ........ that helps !!!
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1504
Location: Chennai

PostPosted: Fri Oct 30, 2009 3:40 pm    Post subject:
Reply with quote

Hi,

Quote:
Thanks TANSTAAFL, Vasanth ........ that helps !!!



TANSTAAFL = There ain't no such thing as a Free lunch.

He is Mr.Robert Sample. Its his caption icon_biggrin.gif

Thanks & Regards,
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Fri Oct 30, 2009 4:53 pm    Post subject: Reply to: User Details using USERID
Reply with quote

amazing ...

first...
Donald Knuth

now...
TANSTAAFL

quite a steep descending slope icon_biggrin.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Fri Oct 30, 2009 5:02 pm    Post subject:
Reply with quote

enrico --
Un learning curve? icon_smile.gif

What can I say? It's been quite a week!
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Oct 30, 2009 5:39 pm    Post subject:
Reply with quote

hsk wrote:
Thanks TANSTAAFL...
Finally... icon_lol.gif
Back to top
View user's profile Send private message
hsk

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Sat Oct 31, 2009 9:47 am    Post subject: Reply to: User Details using USERID
Reply with quote

as long as my "thanks" are conveyed to right person .............

"What's there in name" ............. that's Shakespeare, don't blame me !!!
icon_cool.gif

Anyway ......... Mr.Robert, thanks a ton !!
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts User Cancels the job PANDU1 DB2 1 Sat Mar 04, 2017 8:21 pm
No new posts SORT - E15 and E35 using same user ex... Abhi Nature DFSORT/ICETOOL 12 Mon Oct 03, 2016 4:33 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm


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