Q: I need to test whether a date is valid in a CL program. Unfortunately, I can't do this in RPG! Do you know a good way to check a date in CL? A: The Convert Date (CVTDAT) command in CL is designed to convert a date from one format to another. However, it also checks the data (before conversion) to make sure it's valid. Here's an example of how that behavior can be used to validate a date that has been provided in *MDY format: PGM ...

REGISTER NOW TO ACCESS THIS ARTICLE

All registered users get access to premium content on iPro Developer for free.

Already registered? here.