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     [CASE CLOSED] Nulls and Prefix Operators

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE CLOSED] Nulls and Prefix Operators
 Login/Join
 
Expert
posted
I became alarmed when a report bug was discovered. It relates to nulls and the prefix operator FST: In A SUM, if the column in the first row contains nulls, the column in the second row is selected!

Here's an example. Ideally, in the second TABLE, I'd like the value of FST.WEIGHT2 to be null.

-* File fm_test_nulls1.fex

TABLE FILE CAR
SUM
WEIGHT
COMPUTE WEIGHT2/D5 MISSING ON = IF COUNTRY EQ 'ENGLAND' THEN MISSING ELSE WEIGHT;
BY COUNTRY

ON TABLE HOLD AS H001 MISSING ON
END
-RUN

TABLE FILE H001
PRINT
WEIGHT
WEIGHT2
FST.WEIGHT2
LST.WEIGHT2
END
-RUN

TABLE FILE H001
SUM
FST.WEIGHT2
LST.WEIGHT2
END
-RUN

This message has been edited. Last edited by: Francis Mariani,


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
<JG>
posted
Francis believe it or not this is an issue that goes back to version 4.3

see HT case 90901069

Have not had a chance to check if there is a solution at the moment but I would raise a P1 case with IBI
 
Report This Post
Expert
posted Hide Post
Yikes JG! By the way, I can't find the case you specified.

The manual does state "Generates the first physical instance of the field" - I'm not sure this is vague enough...


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
Expert
posted Hide Post
Apparently this is the "correct and default" behaviour. I'm not sure why it's the correct behaviour.

I would like the value encountered in the first row - whether the value is null or 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
<Kathryn Henning>
posted
Hi Francis,

Here are the notes from case 90901069. The Symptom-Problem-Solution document has been archived due to its age (early 2004). Please see if this gets you closer to what you're looking for.

 
Problem Section 

TABLE a HOLD file using FST. prefix operator on a FIELD with a MISSING value
will not select the MISSING value as the FIRST value. The next value, if it
exists (not MISSING), will be selected as the FIRST value.

Solution Section 

This is expected behavior. An easy way to avoid this behavior is to create the
HOLD file in question using the MISSING OFF option. By default HOLD format
files will respect and retain MISSING data. The HOLD statement using MISSING
ON:    ON TABLE HOLD MISSING OFF AS filename

Another option is to create a DEFINE field prior to creating the HOLD file.
The DEFINE field can use the MISSING OFF option and replace the MISSING value
with a different value such as blank or zero, depending on the format of the
field.
 


Regards,

Kathryn
 
Report This Post
Expert
posted Hide Post
Kathryn,

Thanks for the notes on this case.

I decided to use the DEFINE workaround:

PREV_DAY_AMT/D20.2 MISSING OFF = PREV_DAY_AMT;

Luckily, this DEFINE works - I can use the same column name.

Cheers,


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
<Kathryn Henning>
posted
Hi Francis,

I'm glad to hear that this worked for you.

Regards,

Kathryn
 
Report This Post
Expert
posted Hide Post
FYI,

I've seen similar things in SQL Server, so perhaps the FOCUS logic has been brought into line with SQL standards ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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     [CASE CLOSED] Nulls and Prefix Operators

Copyright © 1996-2020 Information Builders