Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
using SYSUID as a member name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
geet16

New User


Joined: 22 Dec 2006
Posts: 21
Location: USA

PostPosted: Mon Aug 04, 2008 4:26 pm    Post subject: using SYSUID as a member name
Reply with quote

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
View user's profile Send private message
References
0d311

Guest





PostPosted: Mon Aug 04, 2008 4:49 pm    Post subject: Reply to: using SYSUID as a member name
Reply with quote

"XYZ.TEST.CLIST(&SYSUID)"

icon_question.gif
Back to top
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3564
Location: Brussels once more ...

PostPosted: Mon Aug 04, 2008 4:50 pm    Post subject:
Reply with quote

Quote:
UID = SYSVAR('SYSUID')


might work better without the quotes.
Back to top
View user's profile Send private message
geet16

New User


Joined: 22 Dec 2006
Posts: 21
Location: USA

PostPosted: Mon Aug 04, 2008 4:54 pm    Post subject: Reply to: using SYSUID as a member name
Reply with quote

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
View user's profile Send private message
0d311

Guest





PostPosted: Mon Aug 04, 2008 5:02 pm    Post subject: Re: Reply to: using SYSUID as a member name
Reply with quote

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 icon_redface.gif

Code:

/*- REXX ------*/                                         
S=USERID()                                               
SAY "ALLOC F(SORTIN) DA('XYZ.TEST.CLIST("S")') SHR REUSE"


icon_question.gif
Back to top
geet16

New User


Joined: 22 Dec 2006
Posts: 21
Location: USA

PostPosted: Mon Aug 04, 2008 5:05 pm    Post subject: Reply to: using SYSUID as a member name
Reply with quote

Thanks a Millon!! it worked!! icon_biggrin.gif icon_biggrin.gif
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3318
Location: Charlotte,NC USA

PostPosted: Mon Aug 04, 2008 11:45 pm    Post subject: Reply to: using SYSUID as a member name
Reply with quote

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
View user's profile Send private message
geet16

New User


Joined: 22 Dec 2006
Posts: 21
Location: USA

PostPosted: Tue Aug 05, 2008 1:44 pm    Post subject: Reply to: using SYSUID as a member name
Reply with quote

Superk, I tried out using USERID() functioned as mentioned by you and even this working.

Thank You all for your help!! icon_biggrin.gif
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1