× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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
STDOUT to a SRCPF.

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

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.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.