Another SMF SYNCSORT problem
Posted: Sat Oct 13, 2012 1:26 am
I want to select the type 70, subtype 1 records from SMF for reporting. Unfortunately, when SMFDUMP creates the dataset, he adds a 14 byte header and trailer and the subtype is in byte 16. When I test for the byte in 16, SYNCSORT blows up telling me that I am testing beyond the end of the record. Is there a way I can eliminate the header and trailer via SYNCSORT ? Can I use INREC to extend the short records with binary zeros? How can I do this? Better suggestions?
Code so far:
Code so far:
SORT FIELDS=(06,01,BI,A)
INCLUDE COND=(06,01,BI,EQ,X'46',AND,23,02,BI,EQ,X'0001')
OUTFIL FNAMES=SORTRPT,VTOF,BUILD=(02:11,4,DT1,EDIT=(TTTT/TT/TT),
15:07,4,TM1,EDIT=(TT:TT:TT),
25:225,4,BI)
INCLUDE COND=(06,01,BI,EQ,X'46',AND,23,02,BI,EQ,X'0001')
OUTFIL FNAMES=SORTRPT,VTOF,BUILD=(02:11,4,DT1,EDIT=(TTTT/TT/TT),
15:07,4,TM1,EDIT=(TT:TT:TT),
25:225,4,BI)