John, I'm glad that you have been able to master shell script coding, and Unix 
tools like awk, sed, grep, etc.  You must have bought a lot of those O'Reilly 
books with all the strange critters on the covers ;-).

I tried too, but I could never get the hang of it.  I guess if you don't use it 
constantly, you lose it.  Or maybe this old dog just can't learn any new 
tricks.  But to me, your script looks about as inscrutable as APL.

But if this isn't all Greek to Lizette, this could be the way to go.  It would 
probably take me a couple hours to develop a VB program to parse the ISPF 
listings, something you obviously whipped up in a few minutes.  I tip my hat to 
you!

John
 

-----Original Message-----
<snip>
Looks like you're using ISPF statistics, correct? I'll do my "patent pending" 
"using z/OS UNIX in weird ways" method along with my normal "pimping" of 
Dovetailed Technologies free Co:Z product. Install Co:Z Dataset Pipes. 
http://dovetail.com/downloads/coz/index.html. Run the following UNIX script, 
which I called "audit.sh"

#!/bin/sh
for i in "$@";do
pdsdir $i |\
tail +2 |\
awk 'NF==6 {print $1 " " $4 "_" $5 " " $6}' |\
sed "s/$/ $i/";
done |\
sort |\
awk 'NR==1 {line=$0; member=$1;}
NR>1 && member==$1 {line=$0; member=$1;}
NR>1 && member!=$1 {print line;member=$1;line=$0;}
END {print line;}
</snip>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to