Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Go
New
Search
Notify
Tools
Reply
  
-Set Error[SOLVED]
 Login/Join
 
Gold member
posted
Hi All,
Iam getting "(FOC224) SYNTAX ERROR: ( " error message
While i use following code in 7.7.01 environment, it works fine in 7.6.2.
Any Suggestions....

 -SET &IFX2 = '(OR RO EQ '|'''FAIL'''|')'; 


Thanks,
Krish.

This message has been edited. Last edited by: Krishna.edara,


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 88 | Registered: September 20, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
quote:
-SET &IFX2 = '(OR RO EQ '|'''FAIL'''|')';


Works in 7.6.10; here's one way:

  
-SET &QT   = '''';
-SET &IFX2 = '(OR RO EQ '| &QT | 'FAIL' | &QT |')'; 
-TYPE &IFX2
-EXIT


Tom Flynn
WebFOCUS 7.7.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1946 | Location: Parker, CO | Registered: January 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
HI TOM,
DID NOT WORKED....
HERE IS THE ERROR..
(FOC224) SYNTAX ERROR: (

Any Suggestions....

THANKS,
KRISH.


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 88 | Registered: September 20, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
If the result you're trying to achieve is exactly
quote:
(OR RO EQ 'FAIL')
try this:
-SET &IFX2 = '(OR RO EQ ''FAIL'')';
-TYPE &IFX2

The FOC224 error message means
quote:
There is a syntax error serious enough to halt interpretation.
which you can determine by executing
? 224

If what you posted is only an example, please post the real code.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
In my 7.7.01 environment I do not get an error message for this statement.
I think there is something before this statement that causes the error message to appear.
By the way, the code that Francis posted is indeed a bit better, because it is easier to read. The function and the outcome of both version of the statement is the same.


GamP

- Using AS 8.2.01 on Windows 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi GamP
here is my code what iam doing exactly,and iam getting error
(FOC224) SYNTAX ERROR: (

 
-SET &IFX = 'WHERE (FI_TEST EQ '|'''FAIL'''|' OR CSTK_TEST EQ '|'''FAIL'''|')';
-SET &IFX2 = '(OR ML_TEST EQ '|'''FAIL'''|')';
-SET &IFLINE1=IF &LVL IS 'EXCEPT'
- THEN &IFX
- ELSE ' ';
-SET &IFLINE2=IF &LVL IS 'EXCEPT'
- THEN &IFX2
- ELSE ' ';
&IFLINE1
&IFLINE2
 


Thanks
Krish.

This message has been edited. Last edited by: Krishna.edara,


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 88 | Registered: September 20, 2010Reply With QuoteReport This Post
Virtuoso
posted Hide Post
quote:
-SET &IFX2 = '(OR ML_TEST EQ '|'''FAIL'''|')';

I think that should be
-SET &IFX2 = 'OR (ML_TEST EQ '|'''FAIL'''|')';


GamP

- Using AS 8.2.01 on Windows 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi GamP
It did worked....
Thanks,
Krish.


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 88 | Registered: September 20, 2010Reply With QuoteReport This Post
Member
posted Hide Post
-SET &IFX = 'WHERE (FI_TEST EQ '| ''''|'FAIL'|''''|' OR CSTK_TEST EQ '|''''|'FAIL'|''''| ')' ;
-SET &IFX2 = '(OR ML_TEST EQ '|''''|'FAIL'|''''|')';
-TYPE &IFX
-TYPE &IFX2

RETURNS
WHERE (FI_TEST EQ 'FAIL' OR CSTK_TEST EQ 'FAIL')
(OR ML_TEST EQ 'FAIL')


To put a single quote in dialog manager you need to use ''''
this cannot be combined with the text that you want to quote so if you want
'SOMETHING'
to appear in your statement it must be coded
''''|'SOMETHING'|''''
 
Posts: 17 | Location: Colorado, USA | Registered: January 22, 2010Reply With QuoteReport This Post
  Powered by Social Strata  
 


Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.