× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Steve,

It depends which language you are going to use: RPG or CL.

Using CL you canuse a command (with a CPP in RPG) to list all objrects in
a dir to an outfile and the use good ol' OPNQRYF.

In RPG you canuse similar code and embedded SQL.

For some code on such a command see:
http://archive.midrange.com/rpg400-l/200006/msg00357.html (page down to
about the middle)

Regards,
Carel Teijgeler.

*********** REPLY SEPARATOR ***********

On 17-4-2007 at 11:10 Steve Seroogy wrote:

I know the way in a CL or RPG IV to see if there is a file that exists in
a specified path. But, I have a problem with a current project I'm
working on, I will not know the full name of the file. I will only know
the first 4 characters and the extension. Is there a way to identify
the existence of a file or the use of a wild card (example: upld* or
*.dat).



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.