DATETIME

   

The DATETIME parameter sets time and date in reports. This command is useful for determining (statically or dynamically) exactly when your report was run. You can display the DATETIME value using any FOCUS date variable (for example, YMD, MDY, TOD). If DATETIME is not set, the behavior of the FOCUS date variables remain the same.

The syntax is:

SET DATETIME = option

where:

option

Is one of the following:

  • STARTUP, which is the time and date when you began your session. STARTUP is the default value.
  • CURRENT|NOW, which changes each time it is interrogated. For example, if your batch job starts before midnight at 11:59 P.M., it will not complete until the next day. If DATETIME is set to NOW|CURRENT, any reference to the variable gives the current date, not the date when the job started.
  • RESET, which freezes the date and time of the current run for the rest of the session or until another SET DATETIME command is issued.