View previous topic :: View next topic |
Author |
Message |
dubasir Beginner
Joined: 13 Dec 2004 Posts: 20 Topics: 9
|
Posted: Tue Mar 11, 2008 6:55 am Post subject: How to automate 3.4 Dataset listing in REXX |
|
|
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 |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Tue Mar 11, 2008 8:59 am Post subject: |
|
|
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 |
|
|
moyeenkhan Beginner
Joined: 04 Dec 2002 Posts: 64 Topics: 21
|
Posted: Thu Mar 13, 2008 8:35 am Post subject: |
|
|
Look at LISTDSI. This should give you what you need |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Mar 13, 2008 1:13 pm Post subject: |
|
|
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 |
|
|
dubasir Beginner
Joined: 13 Dec 2004 Posts: 20 Topics: 9
|
Posted: Mon Mar 17, 2008 6:55 am Post subject: |
|
|
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 |
|
|
|
|