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


Current date as decimal number

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

DATE1P, &DATE1P, DATE2P, &DATE2P, DATE3P, or &DATE3P can be used to generate a decimal number for the current date of the run.

Table 1 shows the form of the decimal number constant generated for each current 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 Current Date
Decimal Numbers for Current DateFormat of Operand
Format of Constant Example of Constant
DATE1P +yyyymmdd +20050621
DATE2P +yyyymm +200506
DATE3P +yyyyddd +2005172
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