Cristi -
You might want to use our free "catsearch" command, which is included with
the Co:Z toolkit. It combines IGGCSI00 (catalog search) with reading the
dataset DSCBs. For example:
/home/g1java1> catsearch -l g1java1.private.cookbook.**
Volume Referred Ext Tracks Used Recfm Lrecl BlkSz Dsorg Dsname
PRV002 2009/04/19 1 150 2 VB 1020 27920 PO
G1JAVA1.PRIVATE.COOKBOOK.COBADATA
PRV001 2009/04/20 1 150 1 FB 80 6160 PO
G1JAVA1.PRIVATE.COOKBOOK.COBOL
VS
G1JAVA1.PRIVATE.COOKBOOK.INVEN.KSDS
PRV001 2009/04/19 1 15 ? U 0 0 VS
G1JAVA1.PRIVATE.COOKBOOK.INVEN.KSDS.DATA
PRV001 1 15 ? U 0 0 VS
G1JAVA1.PRIVATE.COOKBOOK.INVEN.KSDS.INDEX
VS
G1JAVA1.PRIVATE.COOKBOOK.INVHIST.ESDS
PRV002 2009/04/19 1 15 ? U 0 0 VS
G1JAVA1.PRIVATE.COOKBOOK.INVHIST.ESDS.DATA
VS
G1JAVA1.PRIVATE.COOKBOOK.INVHIST.AIX
PRV003 2009/04/19 1 15 ? U 0 0 VS
G1JAVA1.PRIVATE.COOKBOOK.INVHIST.AIX.DATA
PRV003 1 15 ? U 0 0 VS
G1JAVA1.PRIVATE.COOKBOOK.INVHIST.AIX.INDEX
VS
G1JAVA1.PRIVATE.COOKBOOK.INVHIST.PATH
PRV002 2009/04/20 1 150 2 FB 80 6160 PO
G1JAVA1.PRIVATE.COOKBOOK.JCL
PRV001 2009/04/19 1 15 1 VB 166 6144 PS
G1JAVA1.PRIVATE.COOKBOOK.TRANSREC
There is also a "-t" option, which causes the output to be formatted with
tab delimiters between each field, which is easy to parse from a calling
program or shell script. For more information:
http://dovetail.com/docs/coz/dsp-ref_catsearch.html
Kirk Wolf
Dovetailed Technologies
On Thu, May 14, 2009 at 3:16 AM, Cristi Terpea <[email protected]>
wrote:
> Thanks. It worked.
> I'm trying to reproduce the output of ftp's ls command
>
> Best regards,
> Cristi Terpea
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html