I am trying to use the IFSFile.listFiles() method to walk through a list of
I-Series physical file members, but have only had limited success.

I can get a list of all members in a file by doing the following:

    members = new IFSFile(the400, "/QSYS.LIB/LIBRARY.LIB/FILE.FILE");
    (works)

I would like to be able to get a list of members using wildcards, is there a
way to do this also? I have tried this:

     members = new IFSFile(the400,
"/QSYS.LIB/LIBRARY.LIB/FILE.FILE/MATCH*.MBR");
     (fails)

and this:

     members = new IFSFile(the400,
"/QSYS.LIB/LIBRARY.LIB/FILE.FILE/MATCH*");
     (fails)

and get only an empty array. I am looking for members whose names begin with
the characters MATCH.

Also, IBM's documentation would indicate that the following is equivalent to
indicating the library and file alone as in my first code statement, but
this also has returned to me an empty array:

     members = new IFSFile(the400,
"/QSYS.LIB/LIBRARY.LIB/FILE.FILE/%ALL%.MBR");
     (fails)

Maybe I have the syntax incorrect.  Can you help?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

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.