The TIME opcode with a 14-digit result field, the %DATE built-in, or the %TIMESTAMP built-in are three that come to mind.
==================================================
The DATE positions 191-198 of the program status data structure provides a 4-digit year.
Tom
Last Wiki Answer Submitted: March 7, 2010 10:46 am by bvining6,055 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
*DATE
This will return today’s date as CYYMMDD. Just modify the *CYMD0 parm to get other date formats.
D Today70 S 7 0
C/Free
Today70 = %int(%char(%date():*CYMD0)) ;
at V5R3+
Today70 = %dec(%date():*CYMD0) ;
To expand slightly on the examples provided:
Assuming you’re looking for the full, four digit year.