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


Future 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 future date relative to the current date of the run. d is days in the future and m is months in the future. d and m can be 0 to 9999.

Table 1 shows the form of the decimal number constant generated for each future 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 Future Dates
Decimal Numbers for Future DatesFormat of Operand
Format of Constant Example of Operand Example of Constant
DATE1P+d +yyyymmdd DATE1P+11 +20050702
DATE2P+m +yyyymm DATE2P+2 +200508
DATE3P+d +yyyyddd DATE3P+200 +2006007
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