Rules for User Date

Use the following rules when using user date special words:

  • User date fields are numeric fields, not Date Data Type fields.
  • For an interactive job or batch program, the user date special words are set to the value of the job date when the program starts running in the system. The value of the user date special words are not updated during program processing, even if the program runs past midnight or if the job date is changed. Use the TIME operation code to obtain the time and date while the program is running.

The user date fields cannot be modified. This means they cannot be used:

  • As input fields
  • In the result field of calculations
  • As F1 of DCLPARM operations
  • As Index of LOOKUP operations

See Also

Variables

Date Data Type

*Date

*Day

DCLPARM

Figurative Constants Rules

LOOKUP

*Month

TIME