×
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.
Yes, it runs in QSH. I don't know what that should be a problem. I started
using it back about 6 or 7 years ago now. A quick google of the phrase "grep
examples" got 1,750,000 hits so I guess it's a widely used tool. Certainly
any decent unix administrator would know how to drive it and I think it
should be in any iSeries administrators list of things they can call on to
solve a problem (but that's just my opinion)
I don't recall what the exact original response was other to look for a
sting in a file. So to find every occurrence of the string OUTQ in my CL
source files something like this ought to do the trick:
grep -F 'OUTQ' /qsys.lib/ejhlib.lib/qclsrc.file/*
You can refer to the QSHELL manual for the switches or use the examples and
stuff on the web. I think it's pretty easy to do - whether you think so is
another matter.
Your response suggests that any answer I give will probably not be "good
enough" because what you want is Windows search on the i. I find that
difficult to understand; windows is (mostly) a desktop environment
supporting end users; outside of applications, the "users" of the i5 os are
technical people. The suggestions you have received so far are appropriate
for that audience - unless you are suggesting that end users have stuff all
over the place on your iSeries.
Regards
Evan Harris
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Dave Odom
Sent: Saturday, 12 July 2008 11:37 a.m.
To: midrange-l@xxxxxxxxxxxx
Subject: RE: Search OS/400 Physical Files
Evan,
"Can you at least explain why you think grep is an insufficient solution ?"
Sure. Is it a native i5 function or command? From all my years with this
type of OS architecture, it isn't. Is it easily available from inside the
i5 or do I have to patch together this *ix function and the i5 files of
which I'm searching? From what I know, the answer is no. As I understand
it, I have to go to QSH or some such and from that environment patch back to
the i5 files structures or some such. If I'm wrong, show me; show me it is
as easy as a Windoz Search.
Dave
As an Amazon Associate we earn from qualifying purchases.
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.