On Thu, Aug 6, 2015 at 1:28 PM, Kevin Bucknum <Kevin@xxxxxxxxxxxxxxxxxxx> wrote:
I can't redirect it a file in QTEMP, but this seems to work for sending

RUNJVA CLASS(QIBMHello) PROP((os400.stdout
'file:/qsys.lib/kevin.lib/qtxtsrc.file/javaout.mbr')) OUTPUT(*NONE)

That's cool. It's about as un-Unixy a syntax as you can find for
redirection, but it works! :)

The member has to exist, or otherwise it errors out. It will replace the
contents of the member everytime it's run.

I just tried it, and it created a brand-new member. Perhaps you mean
the source PF has to exist?

Interestingly, I just tried it again with a regular data PF (created
using CRTPF, no DDS, just a record length) and that also worked as the
redirect target. For that, though, it wouldn't create a brand-new

And I just tried an IFS stream file, and that worked fine, including
creating the destination file from scratch. This is, as expected, the
best "fit" for stdout, since it's stream to stream.

So this property thing is actually quite flexible and handy!

John Y.

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