Skip to main content

Knowledge Doc: COBOL intrinsic function INTEGER-OF-DATE returns a RTS error 181

  • April 5, 2023
  • 0 replies
  • 1 view

Heather Caldwell

The Visual COBOL intrinsic function INTEGER-OF-DATE returns a RTS error 181 when specifying an invalid date as an argument. We were expecting it to return a zero. Why?

Example statement:

compute date-int = FUNCTION INTEGER-OF-DATE (20230230)

If a valid date is used then the integer is returned correctly.

Full article: https://portal.microfocus.com/s/article/KM000015976


#SupportTips/KnowledgeDocs