Joined: 26 Nov 2002 Posts: 12367 Topics: 75 Location: San Jose
Posted: Fri Jul 12, 2019 5:28 pm Post subject:
nickciancio,
It is quite simple to reformat the date and time in SMF records.
nickciancio wrote:
The time is in binary format in columns 3-6 and the date is packed in columns 7-10.The file is sorted by date and time.
Since the input is a VB file, you need to add the 4 bytes of rdw to the positions of dates and time. Use the following DFSORT JCL(Untested) which will give you the desired results.
OUTFIL REMOVECC,NODETAIL,VTOF,
BUILD=(80X),
HEADER1=('BEGIN DATE : ',10,5,'/',5,4,' TIME : ',16,08),
TRAILER1=(' END DATE : ',10,5,'/',5,4,' TIME : ',16,08)
/*
PS : if your input dataset is NOT sorted you can add the INREC and SORT statement instead of OPTION COPY
Code:
INREC BUILD=(001,04, $ RDW
007,04, $ TIME
011,04) $ DATE
SORT FIELDS=(9,4,PD,A, $ DATE
5,4,PD,A) $ TIME
_________________ Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum