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