IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

using SYSUID as a member name


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
geet16

New User


Joined: 22 Dec 2006
Posts: 24
Location: USA

PostPosted: Mon Aug 04, 2008 4:26 pm
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
0d311

Guest





PostPosted: Mon Aug 04, 2008 4:49 pm
Reply with quote

"XYZ.TEST.CLIST(&SYSUID)"

icon_question.gif
Back to top
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Aug 04, 2008 4:50 pm
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: 24
Location: USA

PostPosted: Mon Aug 04, 2008 4:54 pm
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
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: 24
Location: USA

PostPosted: Mon Aug 04, 2008 5:05 pm
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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Aug 04, 2008 11:45 pm
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: 24
Location: USA

PostPosted: Tue Aug 05, 2008 1:44 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
No new posts Library member auto insert option TSO/ISPF 3
No new posts DataSet member creation failed with B... Java & MQSeries 15
Search our Forums:

Back to Top