|
> Is there any free wrappers for writing to the IFS? We are going to be > comming up on a project, and I would like to avoid writting that from > scratch if I don't have to. Does the iSeries Toolkit have something like > that? The only times I've had to access IFS files from an RPG main program, it was in parsers that already required scanners to be written in C, and so I just incorporated the IFS access directly into the C module that contained the aforementioned scanner. Using the non-UNIX-type I/O calls allowed me to use an ordinary source member to test the scanner, and eventually the parser, then switch to IFS access simply by recompiling the scanner module with the *IFSIO option. But generally, when using a source member for initial testing isn't an issue, I agree with Bob on preferring the UNIX-type I/O for general use with IFS files. Note that, from C, if you need to use both QSYS.LIB database I/O and IFS I/O in the same module (or even just use both from C in different modules of the same program), you MUST use the UNIX-type I/O calls for all IFS access. (There doesn't, however, seem to be any problem if all QSYS.LIB database access is from RPG). -- JHHL
As an Amazon Associate we earn from qualifying purchases.
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.