Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

DAYS

Example

DAYS returns a FIXED BINARY(31,0) value which is the number of days (in Lilian format) corresponding to the date d.

Read syntax diagramSkip visual syntax diagram>>-DAYS--+--------------------------+--------------------------><
         '-(-+------------------+-)-'
             '-d--+-----------+-'
                  '-,p-+----+-'
                       '-,w-'
 
d
String expression representing a date. If omitted, it is assumed to be the value returned by DATETIME().

The value for d must have computational type and should have character type. If not, d is converted to character.

p
One of the supported date/time patterns. If omitted, it is assumed to be the value 'YYYYMMDDHHMISS9999'.

p must have computational type and should have character type. If not, it is converted to character.

w
An integer expression that defines a century window to be used to handle any two-digit year formats.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)