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     Where clause in a focus file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Where clause in a focus file
 Login/Join
 
Gold member
posted
Can someone please help me? I have joined two focus files and now want to extract data with parameters. I am trying to include a where clause that doesn't bring back null values for a particular field. In dev studio/report painter I have used the condition where field is not missing but it doesn't work.

Since this is a focus file....do I need to enter this condition from the text editor. If so what is the command. Do I have to prefix the field name with the file name?

HELP!!!!!


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Gold member
posted Hide Post
Also, I tried pulling the same query by joining two oracle tables and it didn't work which is why i decided to create focus files. Here's the code from the oracle tables:
TABLE FILE SAVADMT
SUM
SAVADMT_TERM_CODE
SAVADMT_FULL_NAME
SAVADMT_STYP_CODE
SLRRASG_BLDG_CODE
SLRRASG_ROOM_NUMBER
BY SAVADMT_PIDM
HEADING
""
FOOTING
""
WHERE SAVADMT_TERM_CODE EQ '200809';
WHERE SAVADMT_APDC_CODE EQ 'PC' OR 'AC';
WHERE SLRRASG_BLDG_CODE NE MISSING;
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TABHEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=TABFOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=HEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=FOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
SIZE=9,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
BACKCOLOR=RGB(210 210 210),
STYLE=BOLD,
$
ENDSTYLE
END


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Expert
posted Hide Post
That should work for either Oracle tables or FOCUS databases.

I usually code it as:

WHERE column-name IS-NOT MISSING

Are you sure that the column has null values in it, or is it blank?

You could try:

WHERE (column-name IS-NOT MISSING) OR (NOT column-name EQ '');


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
Gold member
posted Hide Post
Thanks so much Francis...you are right....the field was not null but blank. I used the code for blank and it worked. Thanks again!!!


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Expert
posted Hide Post
You're welcome, kitten!


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
Gold member
posted Hide Post
Thank you, Francis Mariani (and everyone else) !

I just got into the forum and wanted to say what you said, and it deserves repeating :

Remember that "nulls propagate" and can nullify (pun intended) the entire statement, so one must be careful using them.

"Missing" ("Null") is not the same as "" (empty string), since null means there is NO value, whereas "" is a value

The value "" is much the same as zero (0) is numerically.

"Missing" in WF seems to occur most naturally as a "short path" meaning that a join results in a "no match" condition for the JOIN in the related dataset.

An "inner join" (the default) naturally returns ONLY those records that match in BOTH datasets, and would avoid the problem of removing them from the answer set.

On the other side of the issue, the "missing" condition can be used, for example, to find all customers who have no orders (to delete them, or to send them a catalog ?)

Thanks for the insight everyone gave on this intriguing issue !

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


WF 7.6.4 & 5.3
Charles Lee
 
Posts: 93 | Registered: June 17, 2008Report 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     Where clause in a focus file

Copyright © 1996-2020 Information Builders