Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Clean up datasets thru REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Clean up datasets thru REXX
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

Moderator Team Head


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

PostPosted: Fri Dec 21, 2007 7:13 pm    Post subject: Re: Clean up datasets thru REXX
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us