March 08, 2007, 02:01 PM
Francis MarianiEDIT 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-SRLFrancis,
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)'.
March 08, 2007, 03:58 PM
smithsBut 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
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
FrankDutchquote:
WHERE EDIT(COUNTRY,'99$') IN ('EN')
or you can say
WHERE EDIT(COUNTRY,'99') EQ ('EN');