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 COMMANDThis 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.