> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Shane
> Sent: Friday, October 28, 2011 1:03 AM
> To: IBM-MAIN@bama.ua.edu
> Subject: Re: Lines per page - IDCAMS output
> 
> Hmmm - I'm not altogether sure that I'm comfortable with IDCAMS and
> "efficient" being mentioned in the same sentence. Be that as it may,
> for large runs, I did find that assembler invocations of the CSI were
> significantly faster than REXX doing likewise. Horses for courses -
> REXX is fine for quick jobs.
> 
> But to the task at hand - these days I might be inclined to mangle the
> output of a LISTCAT with perl to get what was wanted. We've probably
> all got some REXX that'll do (some of) it somewhere, but perl (or awk)
> are designed for this sort of thing, and reformatting would likely be
> easier. After my experiences early last year, I might be inclined to
> make sure I wasn't feeding VBA into it though ... 
> 
> Shane ...

Minor Perl script to totally remove IDCAMS title lines from a LISTCAT. Use of 
"tsocmd"

fromdsn -r 'idcams.output' |\
perl -n -e 'next if m/^1IDCAMS /;next if m/ LISTING FROM CATALOG /;print;' |\
todsn -r 'idcams.output.notitles'

What's bad about VBA? I do it all the time.

--
John McKown 
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * 
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

Reply via email to