Skip to main content

This article explains the error message Operand Time-Of-Day is not declared.

Problem:

During compile of a program which contains a ----move time-of-day to ws-time-of-day--- I receive the error message Operand Time-Of-Day is not declared:

#compile: gen400.cbl - 760 lines
486 move time-of-day to ws-time-of-day.
* 12-S******************** ( 0)**
**   Operand TIME-OF-DAY is not declared

Resolution:

TIME-OF-DAY is a special register data item. This special register requires the compiler directive OSVS.

cob -uvC OSVS pgm.cbl

Incident Number: 2352310

Old KB# 14859