View previous topic :: View next topic
|
Author |
Message |
hsk
New User
Joined: 28 Nov 2006 Posts: 69 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
hsk
New User
Joined: 28 Nov 2006 Posts: 69 Location: India
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
hsk
New User
Joined: 28 Nov 2006 Posts: 69 Location: India
|
|
|
|
Thanks TANSTAAFL, Vasanth ........ that helps !!! |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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
Thanks & Regards, |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
amazing ...
first...
Donald Knuth
now...
TANSTAAFL
quite a steep descending slope |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
enrico --
Un learning curve?
What can I say? It's been quite a week! |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
hsk wrote: |
Thanks TANSTAAFL... |
Finally... |
|
Back to top |
|
|
hsk
New User
Joined: 28 Nov 2006 Posts: 69 Location: India
|
|
|
|
as long as my "thanks" are conveyed to right person .............
"What's there in name" ............. that's Shakespeare, don't blame me !!!
Anyway ......... Mr.Robert, thanks a ton !! |
|
Back to top |
|
|
|