|
Use the tool from the IFSTOOL library http://archive.midrange.com/midrange-l/200301/msg01566.html Put the contents of a directory into a file on the i5 and qry the results Sample; CALL PGM(IFSTOOL/QRYIFSLIB) PARM('/QSLFI400/MSA Files/*' '\L:JIM') 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) */ *********************************************************** QRYIFSLIB V1.7: Dump stat info for each ifs object into outfile QRYIFSLIB. 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 subdirectories. \Q Skip /QSYS.LIB \O Skip /QOPT \L:lib Library to write output file into (Default is QGPL). Jim
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.