Robelle | Products | Library | Support | Partners | Contact Us

SmartDate version 2.2 overwrites next data field

We have discovered a potentially serious problem with SmartDate version 2.2 in that for some date format conversions, the routine returns the correct return data plus 4 extra bytes which overwrite any following fields. In this COBOL example :

 77  SOURCE-DATE         PIC  X(6)       VALUE "980101".
 77  RESULT-DATE         PIC S9(9)  COMP VALUE ZERO.
 77  CHECK-AREA-1        PIC S9(9)  COMP VALUE ZERO.

 CALL "RDTCONVERT" USING SOURCE-DATE, RESULT-DATE, RDT-CONTROL.

SmartDate would end up overwriting the CHECK-AREA-1 field.

This only affects calls that use any of the following six "RDT-TO-TYPE" formats:


 Num    Dec 31, 2000  Format         Data Type  Constant

  17     A01231       AAMMDD          6-byte    RdtX6AAMMDD
  22     2001231      YYYMMDD         32-bit    RdtI32YYYMMDD
  23     200012       CCYYMM          6-byte    RdtX6CCYYMM
  24     200012       CCYYMM          32-bit    RdtI32CCYYMM
  26     2000         CCYY            32-bit    RdtI32CCYY
  27     51615        Powerhouse      16-bit    RdtI16Powerhouse
This bug has been fixed in version 2.3 of SmartDate and is available on request at no charge. We apologize for any inconvenience this may cause you. If you have any questions, please give us a call at 1-888-ROBELLE.

....Back to the Patches Page