|
Yeah, and maybe even use sed to parse it into things we recognize better, like CS405CDS/QCLSRC(ORD500C) find /QSYS.LIB/VERN.LIB -name 'TEST*.MBR' | sed s\%/QSYS.LIB/%% | sed s/.LIB// | sed s\%.FILE/%\(% | sed /.MBR/s//\)/ converts the output (by piping through sed) from /QSYS.LIB/VERN.LIB/EVFEVENT.FILE/TESTCTD.MBR /QSYS.LIB/VERN.LIB/EVFEVENT.FILE/TESTCTRL.MBR /QSYS.LIB/VERN.LIB/EVFEVENT.FILE/TESTPOLINF.MBR /QSYS.LIB/VERN.LIB/EVFEVENT.FILE/TESTRSLVSP.MBR to VERN/EVFEVENT(TESTCTD) VERN/EVFEVENT(TESTCTRL) VERN/EVFEVENT(TESTPOLINF) VERN/EVFEVENT(TESTRSLVSP) Wow! I'm just starting on this sed thing. Unix "weenies" (vbg) have a great thing here. There's a PDF of the QShell Referenece, <http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/rzahz/rzahz.pdf> is the V5R2 version, <http://publib.boulder.ibm.com/iseries/v5r1/ic2924/info/rzahz/rzahz.pdf> the V5R1 version. Regards Vern At 08:09 AM 11/8/02 -0500, you wrote:
This is a multipart message in MIME format. -- [ Picked text/plain from multipart/alternative ] I am pretty sure there is an API to do this. Fellow here was using it. If you're interested in pursuing that path I'll ask him. I like that QSHELL stuff. You can pipe that to an IFS file: QSH CMD('/usr/bin/find /QSYS.LIB/BPCS405CDS.LIB/Q*.FILE -name ''ORD500*.MBR''>/rob/list.txt') dspf '/rob/list.txt' ....+....1....+....2....+....3....+....4....+....5 ************Beginning of data************** /QSYS.LIB/BPCS405CDS.LIB/QCLSRC.FILE/ORD500C.MBR /QSYS.LIB/BPCS405CDS.LIB/QDDSSRC.FILE/ORD500FM.MBR /QSYS.LIB/BPCS405CDS.LIB/QDDSSRC.FILE/ORD500O.MBR /QSYS.LIB/BPCS405CDS.LIB/QPNLSRC.FILE/ORD500HT.MBR /QSYS.LIB/BPCS405CDS.LIB/QRPGSRC.FILE/ORD500.MBR ************End of Data******************** There might even be a cool way to get the WDSc tool to do this for you. Rob Berendt
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.