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

can LISTDSI be used in other user IDs


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

New User


Joined: 06 Apr 2006
Posts: 31

PostPosted: Sat May 20, 2006 6:26 pm
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
jon_s_rice

Active User


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

PostPosted: Sat May 20, 2006 7:19 pm
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: 31

PostPosted: Sat May 20, 2006 9:41 pm
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: 31

PostPosted: Sat May 20, 2006 9:50 pm
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
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 PuTTY - "User is not a surrogate... IBM Tools 5
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts user exit in IBM Infosphere Optim DB2 8
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
Search our Forums:

Back to Top