Focal Point
EDIT and IN (...)

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

March 08, 2007, 02:01 PM
Francis Mariani
EDIT and IN (...)
It appears you cannot use IN (...) in a WHERE statement with EDIT:

TABLE FILE CAR
PRINT
CAR MODEL COUNTRY
WHERE EDIT(COUNTRY,'99$') IN ('EN')
END


Anyone find it odd that this cannot be done?

I'm sure SQL can handle this.


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
March 08, 2007, 02:38 PM
Danny-SRL
Francis,

It says in the book:

(FOC774) THE WORD 'IN' MUST APPEAR IN A VALID CLAUSE
The following clauses must adhere strictly to the specified syntax:
'field IN FILE filename' and 'field IN (x,y,z)'.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

March 08, 2007, 03:58 PM
smiths
But you could do this...

DEFINE FILE CAR
CNTRABBR/A2 = EDIT(COUNTRY,'99$');
END

TABLE FILE CAR
PRINT
CAR MODEL COUNTRY
WHERE CNTRABBR IN ('EN')
END


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
March 08, 2007, 05:10 PM
Francis Mariani
Thanks both.


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
March 08, 2007, 05:17 PM
FrankDutch
quote:
WHERE EDIT(COUNTRY,'99$') IN ('EN')


or you can say
WHERE EDIT(COUNTRY,'99') EQ ('EN');




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7