Re: Printing from ILE/C program running in QUSRWRK
Jevgeni Astanovski <[email protected]>
| Newsgroups | gmane.comp.lang.as400.c |
|---|---|
| Message-ID | <CAJuVQr1zXc4ckXSmrY2kgS9AyqDh6W-kgWdqVypEPgygxbZwFA@mail.gmail.com> |
Hi, Scott and Aaron. Great thanks! It was enough to issue "wrklnk" to see the report in IFS - exactly there it was! I think that it was a bad idea to use different defaults in these 2 compilers, but what is done, is done... However now I know my choices: either use _Ropen functions, or use fopen with SYSIFCOPT(*NOIFSIO) and get a report in output queue or use fopen with SYSIFCOPT(*IFSIO) and find report in IFS. My choice was _Ropen.... Thanks again, Jevgeni. On Wed, Oct 14, 2015 at 5:33 PM, Aaron Albertson <albertaa-r/[email protected]> wrote: > > Hi Jevgeni, > > As Scott mentioned, the problem is the system interface option. > Long > ago when the C++ compiler was added to the system they decided to use a > different default system interface option than was used for the C compiler. > The default for the C compiler is SYSIFCOPT(*NOIFSIO), whereas the default > for the C++ compiler is SYSIFCOPT(*IFS64IO) (64-bit IFS interfaces). In > order to get the same behavior as the C compiler you should specify > SYSIFCOPT(*NOIFSIO) on the C++ compile command. Right now the C++ program > is successfully writing to the "EQRPT" file in your default IFS directory. > > Thanks, > > Aaron > > > -- This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/c400-l or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/c400-l.