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 Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts User Cancels the job PANDU1 DB2 1 Sat Mar 04, 2017 8:21 pm
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


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