How do you reference the current date in 4GL?

 1 Replies
 0 Subscribed to this topic
 11 Subscribed to this forum
Sort:
Author
Messages
BWhite
New Member
Posts: 3
New Member
    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
    Posts: 3353
      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.
      Thanks for using the LawsonGuru.com forums!
      John