gerie
Member
I'm trying to get a grip on the dates and times.
When I make a procedure stating:
FOR FIRST c_DWHdate.
UPDATE c_DWHdate.time-lc = TIME.
END.
My time field is updated, so that's good
When I try to make some variables, TIME is a problem. Why is that and what do I use in stead of TIME?
DEF VAR my-datetime as CHAR no-undo.
DEF VAR v-filename AS CHAR no-undo.
DEF VAR v-location AS CHAR no-undo.
DEF VAR v-fullpath AS CHAR no-undo.
DEF VAR lastdate AS DATE no-undo.
DEF VAR CURRENTDATE AS DATE no-undo.
DEF VAR lasttime AS TIME no-undo.
DEF VAR currenttime AS TIME no-undo.
Could not find source class file TIME.cls. (12625)
Invalid datatype specified: TIME. Specify a datatype such as 'character' or the name of a class. (5638)
** Could not understand line 7. (196)
When I make a procedure stating:
FOR FIRST c_DWHdate.
UPDATE c_DWHdate.time-lc = TIME.
END.
My time field is updated, so that's good

When I try to make some variables, TIME is a problem. Why is that and what do I use in stead of TIME?
DEF VAR my-datetime as CHAR no-undo.
DEF VAR v-filename AS CHAR no-undo.
DEF VAR v-location AS CHAR no-undo.
DEF VAR v-fullpath AS CHAR no-undo.
DEF VAR lastdate AS DATE no-undo.
DEF VAR CURRENTDATE AS DATE no-undo.
DEF VAR lasttime AS TIME no-undo.
DEF VAR currenttime AS TIME no-undo.
Could not find source class file TIME.cls. (12625)
Invalid datatype specified: TIME. Specify a datatype such as 'character' or the name of a class. (5638)
** Could not understand line 7. (196)