× 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.



Bob,

Scott Klement has an example of what you want to do over on his site:

http://www.scottklement.com/rpg/ifs_ebook/ch7readdir.html

His excellent examples have helped me very much whenever I want to work 
with the IFS from RPGLE (and in other areas also).

Thanks Scott!

Peter Colpaert
Application Developer
PLI - IT - Kontich, Belgium
-----
Yoda of Borg are we.  Futile is resistance, assimilated will you be.
-----



"Michael Ryan" <michaelrtr@xxxxxxxxx> 
Sent by: midrange-l-bounces@xxxxxxxxxxxx
16/11/2006 13:54
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
"Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
cc

Subject
Re: Reading Through the IFS






Sure...you can do it through more traditional techniques or through C
functionss. The traditional way would be to use QSH and do an ls of the
directory into a file - check the archives for details. You could also use 
C
functions to do this - check the archives for details. Either way is very
doable.

On 11/16/06, Bob O. <otis_the_cat@xxxxxxxxxxx> wrote:

   Is there a way to read through the files in a folder on the IFS 
(using
   RPGIV or RPG400) and get the file names?

   What I need to do is read through each file in the folder and rename 
it
so
   it will be moved into another folder.  The orignal file name has a 
max
of
   30 characters.  Once it is renamed, it can have up to 60 characters
   depending on the path to the folder it is being renamed to.


----------------------------------------------------------------------

   Talk now to your Hotmail contacts with Windows Live Messenger.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.