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


Past date as decimal number

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

DATE1P-d, &DATE1P-d, DATE2P-m, &DATE2P-m, DATE3P-d, or &DATE3P-d can be used to generate a decimal number for a past date relative to the current date of the run. d is days in the past and m is months in the past. d and m can be 0 to 9999.

Table 1 shows the form of the decimal number constant generated for each past date operand along with an example of the actual decimal number generated when the date of the run is June 21, 2005. yyyy represents the year, mm represents the month (01-12), dd represents the day (01-31) and ddd represents the day of the year (001-366).

Table 1. Decimal Numbers for Past Dates
Decimal Numbers for Past DatesFormat of Operand
Format of Constant Example of Operand Example of Constant
DATE1P-d +yyyymmdd DATE1P-30 +20050522
DATE2P-m +yyyymm DATE2P-12 +200406
DATE3P-d +yyyyddd DATE3P-172 +2004366
Note: You can precede each of the operands in the table with an & with identical results.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014