7.16 DATECHECK

LANSA

7.16 DATECHECK


DATECHECKコマンドは、日付フィールドが、5つの可能な形式のいずれかに対して有効かどうかを検査するために使用します。また、日付が、現在日から特定日数だけ前および/または後までの期間内にあるかどうかを検査することもできます。

参照

DATECHECKのパラメータ

DATECHECKについてのコメント/警告

DATECHECKの使用例

BEGINCHECK

CALLCHECK

CONDCHECK

ENDCHECK

FILECHECK

RANGECHECK

VALUECHECK

                                                         必須/省略可 

                                                                  

  DATECHECK ---- FIELD -------- フィールド名 ---------------------> 

                                                                  

 -----------------------------------------------------------------

                                                         任意指定 

                                                                  

             >-- IN_FORMAT ---- *SYSFMT ------------------------> 

                                *DDMMYY                           

                                *MMDDYY                           

                                *YYMMDD                           

                                *DDMMYYYY                         

                                *YYYYMMDD                         

                                *YYYYDDMM                         

                                *YYMM                             

                                *MMYY                             

                                *MMDDYYYY                         

                                *YYYYMM                           

                                *MMYYYY                           

                                *SYSFMT8                         

                                                                  

             >-- BEFORE ------- 9999999 ------------------------> 

                                数値                     

                                                                  

             >-- AFTER -------- 9999999 ------------------------> 

                                数値                     

                                                                  

             >-- IF_VALID ----- *NEXT --------------------------> 

                                *ERROR                            

                                *ACCEPT                           

                                                                  

             >-- IF_INVALID --- *ERROR -------------------------> 

                                *NEXT                             

                                *ACCEPT                           

                                                                  

             >-- MSGTXT ------- *NONE --------------------------> 

                                メッセージ・テキスト                      

                                                                  

             >-- MSGID -------- DCU0006 ------------------------> 

                                メッセージ識別子                

                                                                  

             >-- MSGF --------- DC@M01 . *LIBL -----------------> 

                                メッセージ・ファイル . ライブラリ名       

                                                                  

             >-- MSGDTA ------- 代替変数 ---------| 

                             |  拡張可能なグループ式     | 

                              ----- ----- 最大20 ---------------