Validating the Treasury Check Operation

To validate the treasury check operation, the followings steps are performed:
  1. Verify the ibmNprPc field contains a value. If it does not, return with validation passed
  2. Convert the process control field to a date. The format is AAMMYY, where AA is an agency code. If the conversion fails, return with a validation error.
  3. Advance that date one year and compare it to today’s date. If the date in the process control field is more than one year, return with a validation error.
  4. Return with validation passed.