Page History
7.19 DATECHECK
| Note |
|---|
| Note: Usage options |
The DATECHECK command is used to check if a date field is valid against one of five possible formats and optionally that the date is within a certain number of days before and/or after the current date.
Also See
7.19.2 DATECHECK Comments / Warnings
| Panel | ||
|---|---|---|
| ||
Required DATECHECK | ||
| No Format | ||
| Required
DATECHECK ---- FIELD --------- field name --------------------->
-------------------------------------------------------------------- Optional >--
>-- IN_FORMAT --- -*SYSFMT ------------------------> *DDMMYY *MMDDYY *YYMMDD *DDMMYYYY *YYYYMMDD *YYYYDDMM *YYMM *MMYY *MMDDYYYY *YYYYMM *MMYYYY *SYSFMT8 >-- BEFORE ------- 9999999
>-- BEFORE ----- 9999999 ------------------------- -> numeric value >-- AFTER> >-- AFTER ------- -9999999 ------------------------> numeric value >--
>-- IF_VALID --- *NEXT --- *NEXT--------------------------> *ERROR *ACCEPT >-- IF_INVALID --- *ERROR
>-- IF_INVALID - *ERROR ----------------------------> *NEXT *ACCEPT >-- MSGTXT
>-- MSGTXT ---- -*NONE -- *NONE--------------------------> message text >-- MSGID
>-- MSGID ----- -DCU0006 -- DCU0006------------------------> message identifier >-- MSGF
>-- MSGF ----- ----DC@M01 . *LIBL --------------------> message file . library name >-- MSGDTA
>-- MSGDTA-- substitution variables ------- substitution variables---------| | expandable group expression |
----- 20 max ---------------- |