| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
geet16
Joined: 22 Dec 2006
Posts: 21
Location: USA
|
| Posted: Mon Aug 04, 2008 4:26 pm Post subject: using SYSUID as a member name |
|
|
Using REXX, I want to achieve the following:
I want read a member which is same as SYSUID, I tried a lot of options but nothing is working:
"ALLOCATE DDN(INDD) DSN('XYZ.TEST.CLIST(SYSUID)')SHR REUSE"
i tried using UID = SYSVAR('SYSUID') and then concatenating the same to get XYZ.TEST.CLIST(UID) but it is not working.
any pointers will be appreciated. |
|
| Back to top |
|
0d311
Guest
|
| Posted: Mon Aug 04, 2008 4:49 pm Post subject: Reply to: using SYSUID as a member name |
|
|
"XYZ.TEST.CLIST(&SYSUID)"
:?: |
|
| Back to top |
|
expat
Guest
Joined: 14 Mar 2007
Posts: 3544
Location: Brussels once more ...
|
| Posted: Mon Aug 04, 2008 4:50 pm Post subject: |
|
|
Quote: UID = SYSVAR('SYSUID')
might work better without the quotes. |
|
| Back to top |
|
geet16
Guest
Joined: 22 Dec 2006
Posts: 21
Location: USA
|
| Posted: Mon Aug 04, 2008 4:54 pm Post subject: Reply to: using SYSUID as a member name |
|
|
Hi,
i tried XYZ.TEST.CLIST(&SYSUID). Just wanted to clarify i am using REXX and not CLIST.
this is error message i am getting,
INVALID DATA SET NAME, 'OBATDD.TEST.STARTUP(&SYSUID)'
MISSING DATA SET NAME OR *+
MISSING NAME OF DATA SET TO BE ALLOCATED
also, i had tried even using SYSVAR(SYSUID) but again no luck. |
|
| Back to top |
|
0d311
Guest
|
| Posted: Mon Aug 04, 2008 5:02 pm Post subject: Re: Reply to: using SYSUID as a member name |
|
|
geet16 wrote: Hi,
i tried XYZ.TEST.CLIST(&SYSUID). Just wanted to clarify i am using REXX and not CLIST.
Oops my bad.. I saw CLIST :oops:
Code:
/*- REXX ------*/
S=USERID()
SAY "ALLOC F(SORTIN) DA('XYZ.TEST.CLIST("S")') SHR REUSE"
:?: |
|
| Back to top |
|
geet16
Guest
Joined: 22 Dec 2006
Posts: 21
Location: USA
|
| Posted: Mon Aug 04, 2008 5:05 pm Post subject: Reply to: using SYSUID as a member name |
|
|
| Thanks a Millon!! it worked!! :D :D |
|
| Back to top |
|
superk
Guest
Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA
|
| Posted: Mon Aug 04, 2008 11:45 pm Post subject: Reply to: using SYSUID as a member name |
|
|
What would've been wrong with just using the USERID() built-in function:
"ALLOCATE DDN(INDD) DSN('XYZ.TEST.CLIST("USERID()")') SHR REU" |
|
| Back to top |
|
geet16
Guest
Joined: 22 Dec 2006
Posts: 21
Location: USA
|
| Posted: Tue Aug 05, 2008 1:44 pm Post subject: Reply to: using SYSUID as a member name |
|
|
Superk, I tried out using USERID() functioned as mentioned by you and even this working.
Thank You all for your help!! :D |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|