View previous topic :: View next topic
|
Author |
Message |
foliater
New User
Joined: 06 Apr 2006 Posts: 31
|
|
|
|
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 |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
Use list dsi like this:
rtn = listdsi('USERIDX.TEST.COBOL')
Note the use of apostrophe to contain the dataset name. |
|
Back to top |
|
|
foliater
New User
Joined: 06 Apr 2006 Posts: 31
|
|
|
|
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 |
|
|
foliater
New User
Joined: 06 Apr 2006 Posts: 31
|
|
|
|
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 |
|
|
|