View previous topic :: View next topic
|
Author |
Message |
geet16
New User
Joined: 22 Dec 2006 Posts: 24 Location: USA
|
|
|
|
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
|
|
|
|
"XYZ.TEST.CLIST(&SYSUID)"
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
UID = SYSVAR('SYSUID') |
might work better without the quotes. |
|
Back to top |
|
|
geet16
New User
Joined: 22 Dec 2006 Posts: 24 Location: USA
|
|
|
|
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
|
|
|
|
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
Code: |
/*- REXX ------*/
S=USERID()
SAY "ALLOC F(SORTIN) DA('XYZ.TEST.CLIST("S")') SHR REUSE"
|
|
|
Back to top |
|
|
geet16
New User
Joined: 22 Dec 2006 Posts: 24 Location: USA
|
|
|
|
Thanks a Millon!! it worked!! |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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
New User
Joined: 22 Dec 2006 Posts: 24 Location: USA
|
|
|
|
Superk, I tried out using USERID() functioned as mentioned by you and even this working.
Thank You all for your help!! |
|
Back to top |
|
|
|