sysVar.currentJulianDate

The system variable sysVar.currentJulianDate contains the current system date in seven-digit Julian format (YYYYDDD). Avoid using this variable, which exists to support code migration from VisualAge Generator to EGL.

The value is numeric, contains no separator characters, and is updated automatically before each reference.

You can use sysVar.currentJulianDate as the source in an assignment or move statement or as the argument in a return or exit statement.

The characteristics of sysVar.currentJulianDate are as follows:

Primitive type

NUM

Data length

7

Value saved across segments

No

Example

  myDay = sysVar.currentJulianDate;

Related reference
Date and time (system words)