Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] 7.6.11
 Login/Join
 
Silver Member
posted
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,
 
Posts: 47 | Registered: March 29, 2005Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Silver Member
posted Hide Post
Sorry, just a posting error, it is correct in the actual fex.
 
Posts: 47 | Registered: March 29, 2005Report This Post
Virtuoso
posted Hide Post
Try putting EMP_NBR in ' '

is it an alpha field?
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
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
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Guru
posted Hide Post
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
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Master
posted Hide Post
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.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Silver Member
posted Hide Post
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
 
Posts: 47 | Registered: March 29, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders