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
 

 

can LISTDSI be used in other user IDs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    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

jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
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: 31

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: 31

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
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 SORT - E15 and E35 using same user ex... Abhi Nature DFSORT/ICETOOL 12 Mon Oct 03, 2016 4:33 pm
No new posts User exit in COBOL programs ganasrinivasan PL/I & Assembler 0 Thu Aug 18, 2016 12:48 pm
No new posts Data set is allocated to another job ... Seppe CLIST & REXX 2 Wed Aug 03, 2016 4:31 pm
No new posts user abend 4038 occurred in module CE... Musab Ahmed PL/I & Assembler 1 Wed Mar 30, 2016 10:49 am
No new posts IP address of user's machine shreya19 TSO/ISPF 5 Wed Mar 16, 2016 3:24 pm


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