z/OS DFSORT Application Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 15

z/OS DFSORT Application Programming Guide
SC23-6878-00

 OPTION COPY
 OUTREC FIELDS=(1,4,11,4,DT1,7,4,TM1,60:X)
 OUTFIL NODETAIL,
  TRAILER1=(//,
   3:'Earliest SMF timestamp is  ',
      MIN=(5,14,ZD,EDIT=('TTTT/TT/TT TT:TT:TT')),/,
   3:'Latest SMF timestamp is    '
      MAX=(5,14,ZD,EDIT=('TTTT/TT/TT TT:TT:TT')))

This example illustrates how the earliest and latest timestamps from a set of SMF records can be displayed.

The OUTREC statement uses the DT1 format to convert the SMF date in input bytes 11-15 to a Z'yyyymmdd' value in bytes 5-12, and uses the TM1 format to convert the SMF time in input bytes 7-10 to a Z'hhmmss' value in bytes 13-18.

The OUTFIL statement uses the Z'yyyymmddhhmmss' value created by OUTREC in bytes 5-18 to determine the minimum (earliest) and maximum (latest) timestamp, and displays those timestamps in a trailer record in the form C'yyyy/mm/dd hh:mm:ss'.

The report might look as follows:
  Earliest SMF timestamp is  2001/01/09 10:27:04
  Latest SMF timestamp is    2001/04/24 06:13:22

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014