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     [SOLVED] COMPUTE + WITHIN

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] COMPUTE + WITHIN
 Login/Join
 
Platinum Member
posted
Hi,

Without COMPUTE field, the code works for any number of WITHIN phrase.

But, when you have a COMPUTE field (plus WITHIN) , the other WITHIN phrases are ignored and the output seems to get generated based on the COMPUTE's WITHIN phrase.

Here are the repro code and i expected both results to be same.

TABLE FILE CAR
SUM
SEATS WITHIN COUNTRY
SALES WITHIN CAR NOPRINT
BY COUNTRY
BY CAR
END

TABLE FILE CAR
SUM
SEATS WITHIN COUNTRY
COMPUTE SALES/I10 = 0; WITHIN CAR NOPRINT
BY COUNTRY
BY CAR
END

Did anyone ever encounter any similar issue?

Thank you

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


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Master
posted Hide Post
That is strange behaviour...

I don't know why, but I do know how to fix it...
...but I don't know why this fixes it. :-)


TABLE FILE CAR
SUM
SEATS WITHIN COUNTRY 
SALES WITHIN CAR NOPRINT
COMPUTE SALES/I10 = 0; WITHIN CAR 
BY COUNTRY
BY CAR
END


Added extra 'SALES WITHIN CAR NOPRINT'.

Greets,Dave


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Platinum Member
posted Hide Post
Thanks Dave Smiler. That fixed the issue.

The other workaround i had was to have COMPUTE as the 1st field followed by the real field. Fortunately, it worked for me with my original report code.
But, with CAR master it crashed the agent Confused


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 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     [SOLVED] COMPUTE + WITHIN

Copyright © 1996-2020 Information Builders