It's a good case for a rexx program. Just let me know what you want parsed out and give some samples of input to look at.
Ken Klein Sr. Systems Programmer kenneth.kl...@kyfb.com 502-495-5000 x7011 -----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of McKown, John Sent: Thursday, June 11, 2009 10:12 AM To: IBM-MAIN@bama.ua.edu Subject: Re: Multi-line "Srchfor" Utility? > -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:ibm-m...@bama.ua.edu] On Behalf Of Chase, John > Sent: Thursday, June 11, 2009 8:26 AM > To: IBM-MAIN@bama.ua.edu > Subject: Multi-line "Srchfor" Utility? > > Hi, All, > > Anyone know of a SuperC-like utility that will parse out a complete > EXEC CICS command? > > The immediate need is to list out all EXEC CICS QUERY SECURITY > commands in our production source library (all COBOL, so they'd all > end with the string "END-EXEC"). It would also be "nice" if the > output could be directly importable into an Excel spreadsheet. > > Depending on the author, the programs we have that issue the QUERY > SECURITY commands may have the various keywords one-per-source-line or > multiple keywords per line, and some even have "EXEC CICS" and "QUERY > SECURITY" on separate lines. > > TIA, > > -jc- I am not aware of one, but I'd bet that I could hack something together in Perl to do it. But I'm not sure if the Perl on z/OS UNIX can read a PDS. You might be forced, in that case, to put the members of the PDS into a unique UNIX subdirectory. Let me mull it around for a bit. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * (817)-961-6183 cell john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html