The system variable VGVar.currentShortJulianDate contains the current system date in five-digit Julian format (yyDDD). 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 automatically updated each time it is referenced by your program.
You can use VGVar.currentShortJulianDate as the source in an assignment or move statement or as the argument in a return or exit statement.
myDay = VGVar.currentShortJulianDate;
Related reference
EGL library DateTimeLib
System variables outside of EGL libraries