Focal Point
[CLOSED] 7.6.11

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

July 14, 2011, 12:54 PM
db
[CLOSED] 7.6.11
This works fine in 5.3.3. I recently upgraded to 7.6.11 and it appears not to recognize amper variables.

TABLE FILE EMPLOYEE
PRINT ORG_CD
WHERE JOB_CD IN ('A0068' 'A0519' 'A0671') OR EMPLOYEE_NBR IN (55511 14888 43779)
WHERE EMPLOYEE_NBR EQ &EMP_NBR (this is line 20)
WHERE EMPLOYEE_CAT_CD_2 IN ('0' '3')
WHERE NOT EMPLOYEE_NBR IN (318621)
ON TABLE SAVE AS ADMINORG
END
-RUN


0 ERROR AT OR NEAR LINE 20 IN PROCEDURE xxxx_idsFOCEXEC *
(FOC260) AN OPERATION IS MISSING AN ARGUMENT
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND


Thanks

This message has been edited. Last edited by: Kerry,
July 14, 2011, 01:05 PM
Francis Mariani
Well, there's an error in the previous line:

WHERE JOB_CD IN ('A0068' 'A0519' 'A0671) OR EMPLOYEE_NBR IN (55511 14888 43779)



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
July 14, 2011, 01:10 PM
db
Sorry, just a posting error, it is correct in the actual fex.
July 14, 2011, 01:36 PM
Prarie
Try putting EMP_NBR in ' '

is it an alpha field?
July 14, 2011, 02:35 PM
Tom Flynn
I always code as the manual states: need comma's to separate values AND semi-colons for WHERE statements:
 
WHERE ((JOB_CD IN ('A0068','A0519','A0671')) 
   OR  (EMPLOYEE_NBR IN (55511,14888,43779));
WHERE EMPLOYEE_NBR EQ &EMP_NBR;
WHERE EMPLOYEE_CAT_CD_2 IN ('0','3');
WHERE NOT EMPLOYEE_NBR IN (318621);


If the &EMP_NBR EQ 12345, then why the need for the OR Test above it???

This message has been edited. Last edited by: Tom Flynn,


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
July 18, 2011, 02:58 AM
Ramkumar - Webfous
I have faced such issues with 7.6.11.

An & Variable will work fine with a SQL query's WHERE clause, where in it will not work with TABLE FILE's WHERE Clause. This is known prevailing issue.

Still, try out options like '', EDIT() and few others.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
July 18, 2011, 09:05 AM
jgelona
First, we have not had any issue with 7.6.11 recognizing & variables in a WHERE clause. It has problems with some functions on the left hand side of the operator (EQ, LT, LE, etc.) but not on the right hand side.

As to your WHERE clauses, they seriously conflict with each other. Multiple WHERE clauses are ANDed together. The way this is coded, you'll get data only when &EMP_NBR is 55511, 14888 or 43779.

As for your error, don't trust the LINE 20 part of the error. There are many times where the wrong line number is given, particularly if you are missing a ';' on a prior line.

I'd change the WHERE clause to this:
WHERE (JOB_CD IN ('A0068','A0519','A0671') OR EMPLOYEE_NBR IN (55511,14888,43779))
  AND EMPLOYEE_CAT_CD_2 IN ('0','3');



In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
July 22, 2011, 10:46 AM
db
Update

My DBA confirmed that this is caused by an internal server issue. The emp_nbr is not being passed, which causes the error in the fex. I will, however, update the code.

Thanks