MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » November 2006

Re: Reading Through the IFS



fixed

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.







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact