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

Thanks, Simon. I also like the second more, but how should _Ropen look like?
I tried again both
LogFile = _Ropen("/QSYS.LIB/KLIBEEK.LIB/EQRPT.FILE", "wr") ;
and
LogFile = _Ropen("/QSYS.LIB/KLIBEEK.LIB/EQRPT.FILE/EQRPT.MBR", "wr") ;
But both return NULL.
Both with errno 3014 (Invalid File Name specified)
And I checked once again, that there is a file EQRPT in KLIBEEK with attribute 
PRTF.




This thread ...

Follow-Ups:

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