Focal Point
[CLOSED] incorrect use of date-time field

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5027021595

December 10, 2010, 10:42 AM
Mark1
[CLOSED] incorrect use of date-time field
Hi,
When I run this:

TABLE FILE DATA2
PRINT PAT_ID HSP_PAT_ENC REALBEG
COMPUTE LASTBEG/HYYMDS = IF HSP_PAT_ENC EQ LAST HSP_PAT_ENC THEN LAST REALBEG ELSE REALBEG ;
BY HSP_PAT_ENC
BY HIGHEST REALBEG
ON TABLE HOLD AS DATA3
END

I get the following. REALBEG is in HYYMDS format.

0 ERROR AT OR NEAR LINE 156 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC36346) INCORRECT USE OF DATE-TIME FIELD OR CONSTANT
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND

This message has been edited. Last edited by: Kerry,


Windows version 768
December 10, 2010, 01:15 PM
GamP
I tried to duplicate your request using MSSQL, but was not successful.
What DBMS do you use?
In MSSQL the HYYMDS data format is unsupported and doing it in a define did not give me the error message.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
December 12, 2010, 03:47 PM
Waz
Can you post the master for DATA2 ?

Is it something to do with the LAST ?

Is it something to do with the data ?

Perhaps you could try simplyfing the COMPUTE. Try setting LASTBEG initially, then start adding the code back to see what make the code fail.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!