Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Alvin Koh — — source: Informix-list mailing list archive (1991-1998)
I have a 4gl program that uses the DATE and UNITS as in
main
define d1 date
define d2 date
let d1 = "1/31/1995"
let d2 = d1 + 1 units month
display d2
end main
The program fails because it trys to assign d2 a value of "2/31/1995" which
is of course an invalid date and results in the following error:
FORMS statement error number -1267.
The result of a datetime computation is out of range.
I am using ONLINE 5.01.UD2 and 4GL RDS 4.11.UC2. I have also got similar
results on ONLINE 5.03.UC1 and 4GL RDS 4.12.UE1. Has anyone encountered this?
Is this a known "bug" and what is the workaround?
Thanks.
--------------------------------------------------------------------------------
Alvin Koh Internet: Alvin_Koh@email.mot.com
Senior Systems Engineer, MIS alvinkoh@pts7.pts.mot.com
Motorola Electronics Pte Ltd - AMK Phone: +65 486-2055
Paging Products Group Fax: +65 481-2840
Asia/Pacific Paging Subscriber Division
--------------------------------------------------------------------------------
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.