currentShortGregorianDate

The system variable VGVar.currentShortGregorianDate contains the current system date in six-digit Gregorian format (yyMMdd). Avoid using this variable, which exists to support code migration from VisualAge® Generator to EGL.

The VGVar.currentShortGregorianDate value is automatically updated each time it is referenced by the program. The returned value is numeric and contains no separator characters.

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

The characteristics of VGVar.currentShortGregorianDate are as follows:
Primitive type
NUM
Data length
6
Value saved across segments
No

Example

  myDay = VGVar.currentShortGregorianDate;
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.