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
 
can LISTDSI be used in other user IDs

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

New User


Joined: 06 Apr 2006
Posts: 23

PostPosted: Sat May 20, 2006 6:26 pm    Post subject: can LISTDSI be used in other user IDs
Reply with quote

can anyone help me in using the LISTDSI function in other user IDs.....

if the filename is given in LISTDSI it automatically prefixes my ID so i could not be able to use it on other IDs....
Back to top
View user's profile Send private message
References
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 106
Location: Douglasville, GA USA

PostPosted: Sat May 20, 2006 7:19 pm    Post subject:
Reply with quote

Use list dsi like this:
rtn = listdsi('USERIDX.TEST.COBOL')
Note the use of apostrophe to contain the dataset name.
Back to top
View user's profile Send private message
foliater

New User


Joined: 06 Apr 2006
Posts: 23

PostPosted: Sat May 20, 2006 9:41 pm    Post subject:
Reply with quote

hi jon_s_rice,

the following is my code...

report = dlist.j /*dlist.j contains the dataset name*/
parse var report hlq1 '.' dsnrep
filename = dsnrep
address ispexec
x = LISTDSI(filename)

as the LISTDSI prefixes my ID i parse and take the filename alone...

but for other IDs how shall i implement the same.... your previous suggestion wouldn't help me.....
Back to top
View user's profile Send private message
foliater

New User


Joined: 06 Apr 2006
Posts: 23

PostPosted: Sat May 20, 2006 9:50 pm    Post subject:
Reply with quote

hi jon_s_rice,

thank u i got it....

i tried like,

filename = dlist.j /*dlist.j contains the dataset name*/
address ispexec
x = LISTDSI("'"filename"'")

and its working now......
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