Trying to debug a program, that reads a source file from integrated file 
system, does something and must generate a report by writing data to PRTF.

As soon as I compiled the program with option *IFSIO, it started to read data 
from IFS stream file that was opened by command

IntrFile = fopen("QIBM/EURIBOR/myfile.txt", "r") ;

verything was fine until I started adding report generation.
I do it as usual: I have a *PRTF, that I normally use so:

LogFile = fopen("*LIBL/EQRPT", "w") ;
fwrite(szTemp, strlen(szTemp), 1, LogFile);

With *IFSIO it does not work, as LogFile always returns NULL with errno 3025 
(no such file or library). 

Very soon I understood that *IFSIO is "responsible" for the problem and I must 
use different notation.
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....

Jevgeni Astanovski

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