Focal Point
(FOC002) A WORD IS NOT RECOGNIZED: SET

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

January 17, 2008, 02:44 PM
jodye
(FOC002) A WORD IS NOT RECOGNIZED: SET
Hi Everyone

I am getting that error message in my reports when I have -SET &ECHO=ALL;. But the reports work perfectly, so it is some kind of warning message I assume. This makes me nervous since I have seen errors like this that start to crash at some point.

Anybody have any idea what might trigger this?My report has a ton of ampers in it but they are all working fine.

Thanks

Jodye


WF 8.0.0.5M
January 17, 2008, 02:55 PM
Leah
Would it be possible for you to post the line(s) before the '-SET', sounds as if something in the previous line is causing issues.


Leah
January 17, 2008, 03:48 PM
Tony A
Jodye,

Watch out for missing semi colons after any -SET. It's the normal reason that folks get this message.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
January 17, 2008, 03:57 PM
jodye
Hi Leah and Tony

I found the problem. I was debugging something and had an exit right after table file. Like this...

TABLE FILE CAR
-EXIT

this triggers the error. Which is a strange error given that there is no SET.

I am sure I have seen that error in the past in reports that work perfectly. Do a view source of the html and there is the error at the very end. But I do not have anything to reproduce that right now.

Thanks!


WF 8.0.0.5M
January 17, 2008, 04:06 PM
Leah
Try forgetting the END sometime, you get a real strange one. As we say, been there, done that.


Leah
January 17, 2008, 04:38 PM
Glenda
Jodye,

Leah is correct, any time you have "TABLE FILE FILENAME" without an "END" you will get the following error.

(FOC002) A WORD IS NOT RECOGNIZED: SET
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT

After it happens enough, you don't think you just go to your fex and begin to look for the section that is missing an "END".


Glenda

In FOCUS Since 1990
Production 8.2 Windows
January 18, 2008, 02:38 AM
nubi
Ive had the same experience as Glenda, as you go on there are a number of errors you will begin to recognise straight away and be able to fix. In fact these two errors still happen to me when im doing multi-statement fex's but ill just flick through it looking for the missing 'END'

if you type in

? (number from error code)

like this:

? 002

and turn the 'display command lines on'

you'll get this description

0(FOC002) A WORD IS NOT RECOGNIZED:A word which is not a reserved word begins a phrase. A reservedword may have been misspelled or there is a syntax error. Reservedwords are IF, BY, AND, etc.:

works for all the error codes ive tried so far and can be a good way of learning more about the errors you may come across

also you can find a summary of all error descriptions here:


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
January 18, 2008, 02:40 AM
nubi
quote:
Originally posted by nubi:
for some reason that url didn't post- let's try that again:

WF Error Descriptions

Wink



Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
January 22, 2008, 10:17 AM
ira
Suggestion: when issuing TABLE FILE XXX
issue an 'END' on the next line right away, and then just insert blank lines to write the body of the code. OR when code is completed use your editor do a find on 'table file', note the line number. then do a search on 'end' if you run into two 'table file' commands without an end in between you know what to do. or if you do not run into ANY 'end' commands for a single table file command - same thing. Good luck..
Ira wf 5.3.x aix 533


aix-533,websphere 5.1.1,apache-2.0,
wf 538(d), 537 (p),
==============
7.6.11 (t) aix 5312
websphere 6.1.19
apache 2.0