Focal Point
[SOLVED] (FOC002) A WORD IS NOT RECOGNIZED: ENGINE

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

June 24, 2009, 12:06 PM
rfbowley
[SOLVED] (FOC002) A WORD IS NOT RECOGNIZED: ENGINE
This is a new one on me. Why will a passthru syntax fail the first time you use it and work the second? Here is the exact code that fails on the first insert, and works on the second, with the 'Internal Daily Balance' record appearing in the database table but not the 'Transaction Errors'. Note the FOC002 error on the first try, and the (FOC1364) notice on the second.

ENGINE SQLORA SET DEFAULT_CONNECTION RCS
SQL SQLORA
INSERT INTO NRCS_REPORT_FILES_INFO
VALUES ( 'Transaction Errors', to_date('05/31/2009','mm/dd/yyyy'), 'RCS_TRERR_20090531', to_date('06/24/2009 11:56:12 ' ,'mm/dd/yyyy hh24:mi:ss') )
;
END
-RUN
0 ERROR AT OR NEAR LINE 135 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC002) A WORD IS NOT RECOGNIZED: ENGINE
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND
-*******************************************************************************
-* for the Internal Daily Balance Report
-*******************************************************************************
-SET &ReportName = 'Internal Daily Balance';
-SET &Filename = RCS_INDLY_20090531;
ENGINE SQLORA SET DEFAULT_CONNECTION RCS
SQL SQLORA
INSERT INTO NRCS_REPORT_FILES_INFO
VALUES ( 'Internal Daily Balance', to_date('05/31/2009','mm/dd/yyyy'), 'RCS_INDLY_20090531', to_date('06/24/2009 11:56:12 ' ,'mm/dd/yyyy hh24:mi:ss') )
;
END
-RUN
(FOC1364) ROWS AFFECTED BY PASSTHRU COMMAND : 1/INSERT

Just for the record, I tried switching the order via cut and paste, with the 'Internal Daily Balance' record being first and the 'Transaction Errors' second. In that case, the transaction errors record was inserted sucessfully.

This client has a WebFOCUS 7.6.4 installation.

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


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
June 24, 2009, 02:09 PM
j.gross
What comes just before this in your fex?


- Jack Gross
WF through 8.1.05
June 24, 2009, 03:42 PM
rfbowley
A hold file generator, that I forgot to put and "END" at the end of.

I stared at that code for three hours and did not see that. Then I worked on something else since I posted it, and your comment made it stand out like a sore thumb

Thanks


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
June 24, 2009, 04:50 PM
j.gross
The runner-up is missing semicolons.


- Jack Gross
WF through 8.1.05