MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to automate 3.4 Dataset listing in REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
dubasir
Beginner


Joined: 13 Dec 2004
Posts: 20
Topics: 9

PostPosted: Tue Mar 11, 2008 6:55 am    Post subject: How to automate 3.4 Dataset listing in REXX Reply with quote

In TSO, when I give the first qualifier/text as "FILE" in 3.4 and press ENTER, it would display all the list of dataset/PDS names starting with qualifier/text FILE. Where it would display the contents like VOL, TRACKS, %USED etc. And I can save this info by giving "SAVE filename" in COMMAND prompt, where it would save that info in "id.filename.DATASETS".

Can some one please let me know the equivalent code in REXX ?

Thanks in Advance.
Dubasi.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Mar 11, 2008 8:59 am    Post subject: Reply with quote

See the LMDLIST service with the SAVE option. Or if you are going to use the data in a program, use LMDLIST without the SAVE option.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
moyeenkhan
Beginner


Joined: 04 Dec 2002
Posts: 64
Topics: 21

PostPosted: Thu Mar 13, 2008 8:35 am    Post subject: Reply with quote

Look at LISTDSI. This should give you what you need
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Mar 13, 2008 1:13 pm    Post subject: Reply with quote

LISTDSI only gives info on 1 dataset at a time. The original poster wanted lists of data sets matching a specification.

see also 'SYS1.PARMLIB(IGGCSIRX)' (in which case LISTDSI would be useful since the catalog does not have reliable DCB info).
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
dubasir
Beginner


Joined: 13 Dec 2004
Posts: 20
Topics: 9

PostPosted: Mon Mar 17, 2008 6:55 am    Post subject: Reply with quote

But LISTDSI functions only for Sequential Datasets and PDS's. It doesn't work for VSAM files. Please let me know if you find any alternate for the same.
Thanks, Dubasi.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group