Forums
S3 Interfaces/Conversion
How do you reference the current date in 4GL?
Author
Messages
BWhite
New Member
Posts: 3
9/15/2005 8:20 PM
Hello Everyone,
I am writing an interface that will select data the previous week.
I would like know how to get the current date so I can determine my date range.
Thanks in advance!
Bonnie
PS. If you could reply to my e-mail address that would be great. bwhite2@tufts-nemc.org
John Henley
Senior Member
Posts: 3348
9/15/2005 9:05 PM
WS-SYSTEM-DATE-YMD is the variable you want to use (it's inserted as part of the compile). It is ccyymmdd PIC 9(08) [ccyymmdd], and gets populated with system date when a program is started.