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




> Is there any useful way to control redirection from within RPG? While a
> spooled file "works", I'd much prefer going direct to a streamfile or
> any similar facility. Reading a spooled file isn't out of the question;
> it's just ugly and prone to future trouble.

I'm not sure what you're asking?  You're writing an RPG program which
outputs to stdout, and you want to know how to redirect it in QShell?
It's done exactly the same way as redirecting anything else in QShell.
The shell doesn't know that it's an RPG program -- it just knows that the
data on descriptor 1 is stdout, and that it should be redirected...

Or, are you saying that you want the output of the C program to be piped
to the input of the RPG program, and you don't know how to read stdin?

I guess I don't understand what the diff between QShell from RPG and
QShell from C is, aside from the fact that 99% of the C programmers are
familiar with Unix-style shells and only 1% of the RPG programmers are.


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.