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



Dennis Lovelady wrote:
For the record, OVRDBF ... TOFILE(...) is precisely what redirection is
about.

But it stops there, unfortunately.

Piping is the ability to stream the output one process as the input of
another.  On the AS/400 (ignoring QSH if I may be so bold), this simple
example:
    sed 's/a/b/g' filename | grep 'any' | tee def | more

would be executed something like this (assuming that sed and grep and tee
actually exist)   :

ovrdbf input TOFILE(filename)
ovrdbf output TOFILE(qtemp/stream1)
call sed 's/a/b/g'
ovrdbf input TOFILE(qtemp/stream1)
ovrdbf output TOFILE(qtemp/stream2)
call grep 'any'
ovrdbf input TOFILE(qtemp/stream2)
ovrdbf output TOFILE(def)
call tee
/* (existing overrides will suffice here...) */
call more

Kinda loses the beauty and simplicity.

Dennis
Just another difference: In Unix, the commands can run in separate
processes running simultaneously. And so that OS/400 command
sequence isn't quite the same.

Cheers!  Hans





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.