General Page
You are in: RPG Cafe > VALIDATE(*NODATETIME)
Short URL: http://ibm.biz/rpgcafe_validate_kw
RPG Cafe: VALIDATE(*NODATETIME)
Enhancement for Date, Time, Timestamp that can improve performance (but use with caution)
VALIDATE(*NODATETIME)
You can code VALIDATE(*NODATETIME) to improve the performance of some Date, Time, Timestamp operations (but use with caution)
- When VALIDATE(*NODATETIME) is not specified, all Date, Time, and Timestamp data is validated before it is used.
- When VALIDATE(*NODATETIME) is specified, then the compiler is free to omit validation of Date, Time, and Timestamp data before it is used. The compiler might instead perform some Date, Time, and Timestamp operations as though the data were alphanumeric. Using this mechanism is faster than performing true date operations.
Use with caution
- This keyword must be used with caution since it bypasses the validation step that is normally performed for Date, Time, Timestamp operations. If you have any invalid Date, Time, or Timestamp data, your program might continue to work with the invalid data.
- Do not use this keyword unless you are confident that your Date, Time, and Timestamp data is always valid.
Documentation in the IBM Knowledge Center
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/rzasd/hvalidate.htm
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS69QP","label":"Rational Development Studio for i"},"Component":"ILE RPG Compiler","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]
Was this topic helpful?
Document Information
Modified date:
12 December 2019
UID
ibm11108227