Can anyone explain this. We have a text field, (A08), which users enter a Date in the format CCYYMMDD, eg 20090812), and validate it using MASK(20YYMMDD). If a user mistypes and enters the date as 02090812, the validation passes. Why is this?
An simple program showing this is below:
DEFINE DATA LOCAL
01 #A(A08) INIT <‘02090812’>
PRINT ‘=’ #A
IF #A = MASK(20YYMMDD)
The above program displays the ‘Valid’ Statement when run.
The Natural version that is being used is Natural 6.1.1 Pl9.