What do you want, you want to search the IFS to find a specific file?
What about the following solution:
1. Run the CL command RTVDIRINF.
RTVDIRINF will Return 2 Out Files beginning with the specified prefix (XXD
and XXO) in the specified library:
RTVDIRINF DIR('/home/YourDirectory')
INFFILEPFX(XX)
INFLIB(YourLib)
2. Just join the 2 outfiles and search the result.
Something like this:
Select QEZDIRNAM1, qezobjnam
from YourLib.XXD join YourLib.XXO using(QEZDIRIDX)
Where Upper(QEZDIRNAM1 concat QEZOBJNAM) like '%YOURFILE%';
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
?Train people well enough so they can leave, treat them well enough so they
don't want to.? (Richard Branson)
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Justin Taylor
Sent: Sonntag, 29. Oktober 2017 14:16
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: Find IFS files with part of filename
That would work. It sounds like an IFS equivalent of the original SQL
solution I proposed.
Thanks
-----Original Message-----
From: Jack Woehr [mailto:jwoehr@xxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Saturday, October 28, 2017 9:29 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: Find IFS files with part of filename
Like John Yeung said, it's a one liner.
If you don't want to ls the folder repeatedly, ls it once to a file once and
repeatedly grep the file instead.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.