>I wonder if it would be easier to code the
>IFS stuff in C and then make it a bound
>procedure for the RPG program?

Not everybody has a C compiler on their system, alas.

>You could make your own function called
>'change_directory' that would be a C function
>to do the chdir() API and another function
>to list the files.  That would be pretty easy I

This is quite easy.  I had to work with some private encryption algorithms
recently, and my  trading partner only knew C.  He gave me the C code, which
I compiled on the iSeries and wrapped the low-level C functions in RPG
procedures and exported the lot in a service program.

The other benefit to thinking along these lines is that it is quite possible
to find Linux or FreeBSD code that's already been written and tested that
does exactly what you want.  It's usually easy enough to port that to the
iSeries and incorporate it as a service program.  Search the net with
http://www.google.com and see what comes up for "opendir() example".

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 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.