Use the tool from the IFSTOOL library

Put the contents of a directory into a file on the i5 and qry the results



Note: if you are using this command in a cl program, you must put a null
character at the end of the path string.

/* Note that if a parm is passed to a one of these utilites */
            /* a null must be added after the last character .           */

            /* See the CL Programming reference - the section on */
             /* calling ILE C programs from a CLP - for further details.
            /* Example:                                             */
            /* DCL    VAR(&NULL) TYPE(*CHAR) LEN(1) VALUE(X'00')        */

            /* CHGVAR VAR(&PATH) VALUE('/ddilling/b' *CAT &NULL)        */

            /* CALL   PGM(DELTREE) PARM(&PATH)                          */

Dump stat info for each ifs object into outfile
This will not follow symlinks.
The output file is overwritten on each call.
This utility is unsupported and provided on an as is basis.  Comments can be
sent to ddilling@xxxxxxxxxxx

CALL QRYIFSLIB '[path/]*|file' ['\S'] ['\Q'] ['\L:lib']

[path/]   Absolute or relative path ending with a '/'.
*         Process all files in a directory.
file      Process only specified file system object.
\S        Process all
\Q        Skip /QSYS.LIB
\O        Skip /QOPT
\L:lib    Library to write output file into (Default is QGPL).


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].