ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

$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

Datacom DATACOM - AD Ideal CIS COMMON SERVICES FOR Z/OS 90S SERVICES DATABASE MANAGEMENT SOLUTIONS FOR DB2 FOR Z/OS COMMON PRODUCT SERVICES COMPONENT Common Services Datacom/AD CA ecoMeter Server Component FOC EASYTRIEVE REPORT GENERATOR FOR COMMON SERVICES INFOCAI MAINTENANCE IPC UNICENTER JCLCHECK COMMON COMPONENT Mainframe VM Product Manager CHORUS SOFTWARE MANAGER CA On Demand Portal CA Service Desk Manager - Unified Self Service PAM CLIENT FOR LINUX ON MAINFRAME MAINFRAME CONNECTOR FOR LINUX ON MAINFRAME GRAPHICAL MANAGEMENT INTERFACE WEB ADMINISTRATOR FOR TOP SECRET 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