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
simple query
 Login/Join
 
Platinum Member
posted
We have a lot of tables and sometimes I need to see the data in the fields. Usually I run a simple program like this:

TABLE FILE MYTABLE
PRINT *
WHERE READLIMIT EQ '1000';
END

But, I believe that this only returns the first 1,000 rows in the table. What I really would like to see is some records where every field is populated, so that I can see what kind of data is in each field simply by scrolling to the right. So, is there a way that I can add a WHERE statement to return only records where all fields are populated? Something like this perhaps:

WHERE * IS NOT MISSING or
WHERE * NE MISSING


Windows version 768
 
Posts: 215 | Registered: March 16, 2006Report This Post
Gold member
posted Hide Post
DEFINE FILE MYTABLE
FLD1_SEL /I1 [MISSING ON] = [IF MISSING THEN 0 ELSE 1] ;
- OR -
FLD1_SEL1 /I1 = IF FLD1 EQ [0 , or " " for alpha] THEN 1 ELSE 0 ;
:
SEL/I1 IF FLD_SEL1 EQ 1 AND FLD_SEL2 EQ 1 ... THEN 1 ELSE 0 ;

:

TABLE
:
WHERE SEL EQ 1


WebFOCUS 7.6.11, WINDOWS, HTML, PDF, EXCEL
 
Posts: 77 | Location: Baltimore | Registered: May 31, 2006Report This Post
Expert
posted Hide Post
There is no shortcut to selecting rows where each column has a value. I can't think of any programming language that could offer that.

What you need to do is have a WHERE statement for each of the columns:

WHERE CAR IS NOT MISSING
WHERE MODEL IS NOT MISSING
WHERE COUNTRY IS NOT MISSING OR COUNTRY IS-NOT ''
...

AND is implied in multiple WHERE statements, you could code the statments as:

WHERE CAR IS NOT MISSING
AND MODEL IS NOT MISSING
AND (COUNTRY IS NOT MISSING OR COUNTRY IS-NOT '')
...


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
Platinum Member
posted Hide Post
You have to test each field.
 
Posts: 118 | Location: Omaha, NE | Registered: June 12, 2003Report This Post
Platinum Member
posted Hide Post
OK, thanks. I will condition on each field.


Windows version 768
 
Posts: 215 | Registered: March 16, 2006Report This Post
Master
posted Hide Post
Quick and dirty is SUM * since this applies the max prefix to non numeric data. Not so good for numerics tho!



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
Virtuoso
posted Hide Post
quote:
Quick and dirty is SUM * since this applies the max prefix to non numeric data. Not so good for numerics tho!

You can use MAX.numfield or FST.numfield with SUM to not get all values summed.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
Thanks, that worked!!


Windows version 768
 
Posts: 215 | Registered: March 16, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders