Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
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    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

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: 8593
Location: Back in jolly old England

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: 24
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: 24
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: 4649
Location: Raleigh, 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: 24
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us