Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example 21 z/OS DFSORT Application Programming Guide SC23-6878-00 |
|
This example illustrates how you can use IFTHEN clauses to reformat different records in different ways. The input data set has RECFM=VB and consists of several different
types of input records as follows:
The first OUTFIL statement produces a report with RECFM=VBA and
LRECL=31 that might look like this:
The first IFTHEN clause operates only against Type1 records; it converts the SMF date using DT1 and the SMF time using TM1. The second IFTHEN clause only operates against Type2 records; it converts the TOD date using DC1 and the TOD time using TC1. The third IFTHEN clause only operates against Type3 records; it converts the ETOD date using DE1 and the ETOD time using TE1. The fourth IFTHEN clause operates against all other types of records; it uses 'n/a' for the date and time. The second OUTFIL statement produces a report with RECFM=VBA and
LRECL=33 that looks like this:
The first IFTHEN clause operates only against Type1 records; it converts the SMF date using DT3 and the SMF time using TM4. The second IFTHEN clause operates only against Type2 records; it converts the TOD date using DC3 and the TOD time using TC4. The third IFTHEN clause operates only against Type3 records; it converts the ETOD date using DE3 and the ETOD time using TE4. The fourth IFTHEN clause operates against all other types of records; it uses 'n/a' for the date and time. |
Copyright IBM Corporation 1990, 2014
|