On 24/05/2006, at 8:38 PM, Jevgeni Astanovski wrote:

Very soon I understood that *IFSIO is "responsible" for the problem and I must use different notation.

It's not responsible. It's just that you can't really use IFSIO and native I/O

Manual (Programmer's guide) advises to use

OK. The only problem is that PRTF does not have members...

IntrFile = fopen("/QSYS.LIB/KLIBEEK.LIB/EQRPT.FILE", "w") ;

returns NULL and errno 3021 (Invalid argument)

then tried

returns NULL and errno 3403 (Not a directory).

I'm sure, that there must be a solution....

Two possibilities:
1) Split the read and print tasks into separate modules. Compile the read module with *IFSIO and the print module without and bind them together to create the program.
        2) Use Record I/O (the _Rxxxx functions) to handle the printer file.

Option 2 is the better approach.

Simon Coulter.
   FlyByNight Software         AS/400 Technical Specialists

   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                 ASCII Ribbon campaign against HTML E-Mail  / \

This thread ...


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

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