View previous topic :: View next topic
|
Author |
Message |
sathiya_09
New User
Joined: 07 Dec 2007 Posts: 2 Location: chennai
|
|
|
|
Hi
I need a REXX tool which can report the list of datasets provided the higher qualifier or even more than one qualifier.
Also can we get the name of the user who actually created a dataset(thru REXX)?
Thanks! |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
sathiya_09 wrote: |
I need a REXX tool which can report the list of datasets provided the higher qualifier or even more than one qualifier.
|
There is nothing in REXX that can provide what you need.
You can, however, write a program that uses the TSO command LISTCAT,
or the ISPF Service LMDLIST.
sathiya_09 wrote: |
Also can we get the name of the user who actually created a dataset(thru REXX)? |
See this FAQ on topics not eligible for discussion. |
|
Back to top |
|
|
Ganesh.Deokar
New User
Joined: 30 Sep 2005 Posts: 26 Location: Buffalo,NY
|
|
|
|
You can get a list of all cataloged datasets providing a HLQ or upto 2 levels. You need to use listcat and outtrap funcations.
Here is the sample:
Code: |
/*REXX*/
address tso
qual= 'USERID'
x = outtrap(var.)
"listcat level('"qual"')"
do a = 1 to var.0 by 2
say word(var.a,3)
end
exit |
|
|
Back to top |
|
|
|