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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Error in and/or statement

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Error in and/or statement
 Login/Join
 
Member
posted
When I execute the code below, I get the following error: COMPUTATIONAL STATEMENT REFERS TO MORE THAN ONE DATA PATH

WHERE ((J001.JDEUS_F1.NELSST IN ('C','A','M','F','Q'))
AND (PM_LEASING.LEASE_LI.LESSEE EQ 'Y')
AND (PM_LEASING.1502B.RECUR_BILL_START_DATE LE '06012008'))
AND ((PM_LEASING.1502B.RECUR_BILL_END_DATE GE '06302008')
OR (PM_LEASING.1502B.RECUR_BILL_END_DATE IS MISSING ))
AND ((PM_LEASING.1502B.SUSPEND_CODE IS MISSING )
OR (PM_LEASING.1502B.SUSPEND_DATE GE '06302008'));

It works fine if I take the 2 "OR" statements out. I tried messing around with the () but haven't found a solution yet. (User is coding this through report assistant 7.1.7 on xp)


7.1.7
Vista
 
Posts: 29 | Registered: July 05, 2007Report This Post
Virtuoso
posted Hide Post
Have you tried splitting the statement into a few Where statments?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
I tried changing the code to

WHERE ((J001.JDEUS_F1.NELSST IN ('C','A','M','F','Q'))
AND (PM_LEASING.LEASE_LI.LESSEE EQ 'Y')
AND (PM_LEASING.1502B.RECUR_BILL_START_DATE LE '06012008'));
WHERE ((PM_LEASING.1502B.RECUR_BILL_END_DATE GE '06302008')
OR (PM_LEASING.1502B.RECUR_BILL_END_DATE IS MISSING ))
AND ((PM_LEASING.1502B.SUSPEND_CODE IS MISSING )
OR (PM_LEASING.1502B.SUSPEND_DATE GE '06302008'));
and got this error:
(FOC1400) SQLCODE IS 936 (HEX: 000003A8)
: ORA-00936: missing expression
: Error context area: ')) AND ( = 1)
L (FOC1406) SQL OPEN CURSOR ERROR. : 1502B


7.1.7
Vista
 
Posts: 29 | Registered: July 05, 2007Report This Post
Virtuoso
posted Hide Post
Well your original error...is because you had one long WHERE in different data paths. You can only have one. You may try putting these in a DEFINE...to work with the "is missing".


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
I was trying to avoid doing a define because there are millions of rows in the table. Would it be possible to do a where compute?


7.1.7
Vista
 
Posts: 29 | Registered: July 05, 2007Report This Post
Expert
posted Hide Post
quote:
MORE THAN ONE DATA PATH
is related to the JOIN statements. Try adding the following command after the JOINs to view the Join structure:

CHECK FILE host-file-name PICTURE


This will show you the Join structure - you probably have two branches (data paths) and will have to change the Joins to resolve the problem.


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
Member
posted Hide Post
I actually ended up splitting the where statement up. I included 2 where conditions and then created a hold file. Then I did the remaining where statements on the hold file.
Thanks for all of your input.


7.1.7
Vista
 
Posts: 29 | Registered: July 05, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Error in and/or statement

Copyright © 1996-2020 Information Builders