6.2.1.3 DATE, DATE YYYYMMDD, DAY, DAY YYYYDDD, DAY-OF-WEEK, and TIME
X The conceptual data items DATE, DATE YYYYMMDD, DAY, DAY YYYYDDD,
DAY-OF-WEEK, and TIME implicitly have USAGE DISPLAY. Because these are
conceptual data items, they cannot be described in the COBOL program.
-
DATE
-
X Has the implicit PICTURE 9(6). If the DATEPROC compiler option is in
X effect, then the returned value has implicit DATE FORMAT YYXXXX, and
X identifier-2 must be defined with this date format.
The sequence of data elements (from left to right) is:
2 digits for the year
2 digits for the month
2 digits for the day
Thus, 27 April 1995 is expressed as: 950427
-
X DATE YYYYMMDD
-
X Has the implicit PICTURE 9(8). If the DATEPROC compiler option is in
X effect, then the returned value has implicit DATE FORMAT YYYYXXXX, and
X identifier-2 must be defined with this date format.
X The sequence of data elements (from left to right) is:
X 4 digits for the year
X 2 digits for the month
X 2 digits for the day
X Thus, 27 April 1995 is expressed as: 19950427
-
DAY
-
X Has the implicit PICTURE 9(5). If the DATEPROC compiler option is in
X effect, then the returned value has implicit DATE FORMAT YYXXX, and
X identifier-2 must be defined with this date format.
The sequence of data elements (from left to right) is:
2 digits for the year
3 digits for the day
Thus, 27 April 1995 is expressed as: 95117
-
X DAY YYYYDDD
-
X Has the implicit PICTURE 9(7). If the DATEPROC compiler option is in
X effect, then the returned value has implicit DATE FORMAT YYYYXXX, and
X identifier-2 must be defined with this date format.
X The sequence of data elements (from left to right) is:
X 4 digits for the year
X 3 digits for the day
X Thus, 27 April 1995 is expressed as: 1995117
-
DAY-OF-WEEK
-
Has the implicit PICTURE 9(1).
The single data element represents the day of the week according to
the following values:
1 represents Monday 5 represents Friday
2 represents Tuesday 6 represents Saturday
3 represents Wednesday 7 represents Sunday
4 represents Thursday
Thus, Wednesday is expressed as: 3
-
TIME
-
Has the implicit PICTURE 9(8).
The sequence of data elements (from left to right) is:
2 digits for hour of day
2 digits for minute of hour
2 digits for second of minute
2 digits for hundredths of second
Thus, 2:41 PM is expressed as: 14410000
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
z/OS |
z/OS.e |
TPF |
z/VSE |
z/VM |
IBM Hardware |
IBM System z Redbooks
Glossary:
IBM terminology
Publications:
How to order publications
Readers:
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Library management:
Download IBM Softcopy Librarian
Contacts:
Contact z/OS
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.