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

Clean up datasets thru REXX


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sathiya_09

New User


Joined: 07 Dec 2007
Posts: 2
Location: chennai

PostPosted: Fri Dec 21, 2007 6:42 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Dec 21, 2007 7:13 pm
Reply with quote

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
View user's profile Send private message
Ganesh.Deokar

New User


Joined: 30 Sep 2005
Posts: 26
Location: Buffalo,NY

PostPosted: Fri Dec 21, 2007 8:02 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top