currentGregorianDate

The system variable VGVar.currentGregorianDate contains the current system date in eight-digit Gregorian format (yyyyMMdd).

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

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

The characteristics of VGVar.currentGregorianDate are as follows:
Primitive type
DATE
Data length
8
Value saved across segments
No

Example

  myDate = VGVar.currentGregorianDate
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.