How do you reference the current date in 4GL?

Sort:
You are not authorized to post a reply.
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
    Senior Member
    Posts: 3348
    Senior Member
      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
      You are not authorized to post a reply.