>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 >think. 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". --buck
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.