7.19 DATECHECK

Þ: 利用法の確認

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

参照

7.19.1 DATECHECK のパラメータ

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

7.19.3 DATECHECK の使用例

7.7 BEGINCHECK

7.10 CALLCHECK

7.17 CONDCHECK

7.43 ENDCHECK

7.59 FILECHECK

7.100 RANGECHECK

7.126 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 ---------------