Synchronize CA 2E application date handling with the IBMi 7.5 Base Year 1970 (QIBM_QBASEYEAR) functionality
search cancel

Synchronize CA 2E application date handling with the IBMi 7.5 Base Year 1970 (QIBM_QBASEYEAR) functionality

book

Article ID: 446972

calendar_today

Updated On:

Products

CA 2E

Issue/Introduction

Is there an easy way to convert the newly supported Base Year of 1970 in IBMi for the 2 digit year support?

Environment

CA 2E 8.7.3 and higher

IBMi 7.5

Resolution

 

IBMi 7.5 introduced support for a base year of 1970, shifting the 2-digit year range to 1970–2069.

To align CA 2E applications with this OS-level change, perform the following steps:

Configuration

  1. OS Level
    • Change the environment variable QIBM_QBASEYEAR to 1970
  2. CA 2E
    • Update the YCUTOFF model value. This value is retrieved at runtime via the Y2CTOFF data area.
    • Change the Y2CTOFF data area value to 1970 (from the default 1940)

Additional Information

Impact Analysis

  • No Re-generation Required: Since YCUTOFF is evaluated at runtime by generated programs, functions do not need to be re-generated or re-compiled.
  • Data Validation: Before applying this change, verify that existing production data does not contain dates earlier than 1970 that rely on 2-digit entry logic.
  • Range: With a cutoff of 1970, years 70-99 are treated as 1970-1999, and 00-69 are treated as 2000-2069.