Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

X 1.7.2.1.5 Compatible Date Field




X The meaning of the term compatible, when applied to date fields, depends
X on the COBOL division in which the usage occurs:


X Data Division

X Two date fields are compatible if they have identical USAGE and
X meet at least one of the following conditions:

  • X They have the same date format
    
    
  • X Both are windowed date fields, where one consists only of a
    X windowed year, DATE FORMAT YY
    
    
  • X Both are expanded date fields, where one consists only of an
    X expanded year, DATE FORMAT YYYY
    
    
  • X One has DATE FORMAT YYXXXX, the other, YYXX
    
    
  • X One has DATE FORMAT YYYYXXXX, the other, YYYYXX
    
    


X A windowed date field can be subordinate to an expanded date
X group data item. The two date fields are compatible if the
X subordinate date field has USAGE DISPLAY, starts two bytes after
X the start of the group expanded date field, and the two fields
X meet at least one of the following conditions:

  • X The subordinate date field has a DATE FORMAT pattern with
    X the same number of Xs as the DATE FORMAT pattern of the
    X group date field.
    
    
  • X The subordinate date field has DATE FORMAT YY.
    
    
  • X The group date field has DATE FORMAT YYYYXXXX and the
    X subordinate date field has DATE FORMAT YYXX.
    
    


X Procedure Division

X Two date fields are compatible if they have the same date format
X except for the year part, which may be windowed or expanded.
X For example, a windowed date field with DATE FORMAT YYXXX is
X compatible with:

  • X Another windowed date field with DATE FORMAT YYXXX
    
    
  • X An expanded date field with DATE FORMAT YYYYXXX


Previous Topic Next Topic © 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.