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



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






rob@dekko.com@midrange.com on 11/15/2002 08:53:12 AM

Please respond to midrange-l@midrange.com

Sent by:    midrange-l-admin@midrange.com


To:    midrange-l@midrange.com
cc:
Subject:    Piping and Redirection


This is a multipart message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
You mean like OVRDBF INPUT and OVRDBF OUTPUT on the FTP command?

Rob Berendt
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
Benjamin Franklin




Douglas Handy <dhandy1@bellsouth.net>
Sent by: midrange-l-admin@midrange.com
11/13/2002 04:22 PM
Please respond to midrange-l

        To:     midrange-l@midrange.com
        cc:
        Fax to:
        Subject:        Re: OT - Shutting down an RS/6000 ?


Joe,

>Excellent points.  Not sure I agree 100%, but we've veered far off-topic
and
>into the land of opinion anyway.

You say that is if it didn't start in the in the land of opinion...

Doug

PS - For the record, I like the consistency of OS/400's command naming,
but I
also really like the ability to use piping and redirection.  Now if we
could
just have the best of both worlds...








As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.