$VERIFY-DATE with no TEMPLATE returns an INVALID DATE when using a year greater than 2013 for the date.

book

Article ID: 49088

calendar_today

Updated On:

Products

CA Datacom - DB CA Datacom CA Datacom - AD CA Datacom - Server CA Ideal CA CIS CA Common Services for z/OS CA 90s Services CA Database Management Solutions for DB2 for z/OS CA Common Product Services Component CA Common Services CA Datacom/AD CA ecoMeter Server Component FOC CA Easytrieve Report Generator for Common Services CA Infocai Maintenance CA IPC Unicenter CA-JCLCheck Common Component CA Mainframe VM Product Manager CA Chorus Software Manager CA On Demand Portal CA Service Desk Manager - Unified Self Service CA PAM Client for Linux for zSeries CA Mainframe Connector for Linux on System z CA Graphical Management Interface CA Web Administrator for Top Secret CA CA- Xpertware

Issue/Introduction

Description:

Programs that use $VERIFY-DATE with no TEMPLATE will result with an INVALID DATE if the year is greater than 2012.

Solution:

When a TEMPLATE is not specified in a program that is using $VERIFY-DATE, the default, which is 'YYMMDD" will be used and will return an INVALID DATE if the year is greater than 2012. For example, a date of 20130101 would give back an INVALID DATE because 13 is not a valid month. You must use a TEMPLATE, for example:

IF $VERIFY-DATE('20131208') will return an INVALID DATE.
IF $VERIFY-DATE('20130812',TEMPLATE='YEARDDMM') will return a VALID DATE.

Environment

Release:
Component: IDEAL