AirlineDate

AirlineDate is a specialized internal function that computes a date from an "airline travel date", transaction date, and a transaction type (PIC X). The resulting date is formed by using the day and month of the travel date. If the travel month is less than the transaction month and the transaction type = "1", then add 1 to the transaction year to produce the resulting year.

The YYYYMMDD transform may be applied to resulting data item.

Note: This internal function is available only if the Airline Date Function option is enabled in the Designer file.
 AirLineDate(Travel-Date, Transaction-Date, Transaction-Type)
Argument Description
Travel-Date PIC X(5) in the form DDMMM.
Transaction-Date Must have a date transform.
Transaction-Type PIC X. If equal "1" and the travel month is less than transaction month, add 1 to transaction year to produce resulting year.