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



I've never used the QCMDEXEC function in SQL - now that I'm retired... never will, I guess.

At my last employer, I really did miss the RUNCMD feature from HelpSystems SEQUEL product. I used that extensively.



-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Vern Hamberg via MIDRANGE-L
Sent: Friday, August 12, 2022 5:15 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: Vern Hamberg <vhamberg@xxxxxxxxxxxxxxx>
Subject: Re: Find string in multiple it's files using sql services

Hi Roger

Just one of the days I'm looking at SQL services - the ifs_read table
function with a locate() function was very easy - it did require a path,
of course, and I thought it'd be interesting to see if I could feed that
path using another SQL services - ifs_object_statistics is also very
handy - now to "pipe" (see, I know the terms!!) the output to ifs_read.

I had another interesting when this didn't work - maybe JOIN
ifs_object_statistics with the QCMDEXC function - and use qshell with
grep as the command being executed there. I don't need details on the
contents, only that it is in there.

Of course, RDi could come to the rescue, too - another thing to explore.

Regards
Vern

On 8/12/2022 11:37 AM, Roger Harman wrote:
As opposed to using "grep"?


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Vern Hamberg via MIDRANGE-L
Sent: Friday, August 12, 2022 8:15 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: Vern Hamberg <vhamberg@xxxxxxxxxxxxxxx>
Subject: Find string in multiple it's files using sql services


I have XML files in a folder, I want to see which ones have a certain value in them, such as an account code. I tried ifs_object_statistics with start_path_name ==> set, joined to ifs_read, the path_name from ifs_object_statistics in path_name ==>.

hope that makes sense, I get an error that says the value of start_path_name in not a valid file, maybe someone can give an idea or alternative

cheers
Vern





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.