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
/QSYS.LIB/LIB_NAME.LIB/FILE_NAME.FILE/MEMBER_NAME.MBR

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

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

returns NULL and errno 3021 (Invalid argument)

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

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.

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



This thread ...

Replies:

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].