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
NODATA
 Login/Join
 
Virtuoso
posted
FIELD=GST_FLAG ,
A1 ,A1 ,MISSING=ON ,$

There are only 2 values it can be 'A' or '.'

In 5.3.4 the following worked

IF GST_FLAG NE 'A'

Upgraded to 7.1.6 and this no longer works. I receive 0 records I tried changing NODATA = 'X', NODATA = ' ' and tried screening on that...doesn't work...Tried all kinds of things setting missing and nodata...
Finally just held it as HOLD file and Did the same screen on that
IF GST_FLAG NE 'A'
...and it worked. Question is why would I have to do that?

This message has been edited. Last edited by: Prarie,


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
The selection criteria should work. Did you try changing it to WHERE GST_FLAG NE 'A'?

Did you try regenerating the Master (if this is a DBMS table)?


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
Virtuoso
posted Hide Post
This an Oracle Table. I've Tried the Where Statment...problem is..just get 0 records now.
I will try getting the Master regened.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
P, i don't have an Oracle table to try it on, but im on 76 in win2k3
i did this
DEFINE FILE CAR
NEWSALES/I8 MISSING ON = IF COUNTRY IS 'ENGLAND' THEN SALES ELSE MISSING ;
END
TABLE FILE CAR
PRINT COUNTRY CAR MODEL
IF NEWSALES IS MISSING
END
worked for me, IS , EQ and NE also worked.
the thing about NODATA is its just a mask, something to prove you have a null value.
So you cant filter on it.
So i set it to '' in my edasprof, so that my excel users don't have that nasty dot to deal with in their exports.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Master
posted Hide Post
Prarie

SQL and WebFOCUS treat null (missing) values differently in tests.

In SQL null anytest anyval is always false.
In WF null gets treated like a value thus
missing eq missing true
missing ne '2' true

I have to say that wf is the sensible one.

Now what has prob happened is that in the release change optimizer settings of how much of the query gets passed to Oracle has changed.

Originally the IF GST_FLAG NE 'A' would not have been passed to Oracle and WF would do the test hence the record would be accepted.

There are 2 solutions:

(a) Change the expression passed to Oracle to be equivalent to WF test.

WHERE GST_FLAG NE 'A' OR GST_FLAG EQ MISSING;

(b) Disable optimization for this expression

Define

NEW_GST_FLAG/A1 = IF LJUST(1,'A','A1') EQ 'B' THEN MISSING ELSE GST_FLAG ;

Where test becomes

IF NEW_GST_FLAG NE 'A'

The first part of the expression is always false but the inclusion of the LJUST function will force WF to de-optimize the IF test and hence the test is done on WF.

Incidentally WF as usual is more logically correct than SQL.

I think Ted Codd, the inventor of the RDBMS, was a very good salesman, but not as clear a thinker as our own Gerry Cohen.

But as usual its the salesmen who win!



John



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
Master
posted Hide Post
The problem here is that MISSING (NULL) values are not equal to anything so equality tests do not work when the WHERE clause is passed to Oracle. I'm pretty sure they don't work for FOCUS/WebFOCUS either, so I'm not sure how this ever worked. Instead of using IF GST_FLAG NE 'A', use IF GST_FLAG IS MISSING. That should always work.

I'm curious. When you did your HOLD file, did the use ON TABLE HOLD MISSING OFF? Are you sure the value are 'A' and null? In other words are you sure the field is not blank? You might try the following just to verify the field contains what you think it does.

TABLE FILE X
COUNT FIELD/I8
BY GST_FLAG
END


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
Virtuoso
posted Hide Post
Thanks for all the input and ideas.

quote:
IF GST_FLAG IS MISSING


Worked! Wonder why it ever worked before now.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders