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.
I have a compute of HGETC ( 10 , 'HYYMDm' ) with a format of HMDYY.S and I have a second compute of HDIFF ( Compute_1 , DT_TM_END , 'HOURS' , 'D12.0' ) . I have tried using LE a numeric value in the second compute but it will not bring back the results, it brings back all results. I am trying to limit the search to say 60 hours between the two dates. I want the ability to bring data within a certain amount of hours between NOW and a table that has transactions going back 90 days.This message has been edited. Last edited by: FP Mod Chuck,
First of all welcome to Focal Point. I see you have been a member for quite a while but this is your first post...
WebFOCUS gets all the results of the request and then does the computes. Although I have never tried to filter on the results of two computes I don't think it will work. Hopefully someone else will have some insight to this.
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005
As Babak suggested, once you are sure that your COMPUTEs return the proper value, you can create a third one to perform the difference between the first two then use
WHERE TOTAL ThirdCompute LE xx;
Such as this sample :
TABLE FILE CAR
SUM RETAIL_COST
DEALER_COST
COMPUTE NRET /P6C = RETAIL_COST / 10;
COMPUTE NDEL /P6C = DEALER_COST / 2;
COMPUTE DIF /P6C = NDEL - NRET;
BY CAR
BY MODEL
WHERE TOTAL DIF GT 3000;
END
-RUN
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013