× 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 Mon, 18 Nov 2002, Tom Liotta wrote:

> elsewhere. Disregarding any fancy facilities some great shell might have
> beyond just piping and redirection, on other systems, how do basic
> commands/utilities such as sed and grep handle files that aren't
> streamfiles?

Do you mean how are record based files handled on other systems or do you
mean how are record based files handled by the shell commands on the
iSeries?  I think you mean the second.

I think a lot of what happens has to do with the underlying file system
structure.  Since you ask about files specifically and not stdin/stdout
the issue revolves around what the open() and read() functions do.  You
could write a little program to test these out yourself.  An easier test
is to try from the QSHELL command prompt:

cat /QSYS.LIB/MY.LIB/MYFILE.FILE/MEMBER.MBR

and see what you get.  I don't have a machine to test with right now so
please post your results, I'd like to know what you get.

> That is, traditional OS/400 commands commonly wouldn't support something
> like piping because they generally rely on a database record format. Is
> it even meaningful to make comparisons outside of QSHELL?

The discussion revolved around which command interface was more user
friendly, not so much about which did its particular job better.  Because
users have different needs and everyone does things differently some very
meaningful discussion occurred.

James Rich



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.