-f switch captures parameters relevent to SQL optimization only (correct me if I'm wrong) ..
Get the shells.zip from
ftp://www.redbooks.ibm.com/redbooks/SG246012/
There is a script(ksh) which is dependent on an awk script .. these scripts should do what you want
It worked well with V7, but have not tried with V8 yet ...
HTH
Sathyaram