Page 1 of 1

Another SMF SYNCSORT problem

PostPosted: Sat Oct 13, 2012 1:26 am
by JohnH
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:
   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)                                                     

Re: Another SMF SYNCSORT problem

PostPosted: Sat Oct 13, 2012 1:33 am
by dick scherrer
Hello,

I'm not near the doc just now, but look for something like VLSHRT. There are possibly some topics in the Syncsort part of the forum about how to handle short records.

IIRC the way is not the same between DFSORT and Syncsort, but i wouldn't bet on it. If this is still an issue, post back and i'll try to look deeper tonight or tomorrow.

Re: Another SMF SYNCSORT problem

PostPosted: Mon Oct 15, 2012 4:45 pm
by JohnH
I used the PARM='VLTESTI=1' and it worked perfectly.

Thanks so much, I never would have fond this on my own.

Re: Another SMF SYNCSORT problem

PostPosted: Tue Oct 16, 2012 8:39 am
by dick scherrer
Good to hear it is working - thanks for letting us know :)

Sorry that i was only "close" with the syntax. . .