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.
How do I use a specific date (not contained in my synonyms) in a calculation? For example:
Here's my sample report. I want to look in the EffectiveDate column to find the nearest date to a specific date (not contained in my table) of 1/1/2013 and return the nearest UnitPrice by ProductName.
Apply the DATECVT function to the constant value so that it can be used in a date comparison function.
Here's an example:
DEFINE FILE GGORDER
ORDER_DATE_YYMD/YYMD = ORDER_DATE;
DAYS_DIF/P4 = DATEDIF( DATECVT(19960115, 'I8YYMD', 'YYMD'), ORDER_DATE_YYMD, 'D' );
END
TABLE FILE GGORDER
PRINT
ORDER_DATE_YYMD
DAYS_DIF
BY PRODUCT_CODE
END
In this example, to calculate the difference in days between a constant value and a column value, I use the DATEDIF function, and I am required to use the DATECVT function to convert the constant integer value into a date value. (I convert ORDER_DATE to a date value because in table GGORDER, ORDER_DATE has a date format of MDY (no century in the year component).
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
Are you using a GUI tool? The Procedure Viewer allows you to set up a DEFINE. It is documented:
WebFOCUS Release 8.0 Version 08 > Developer Studio > Creating Reporting Applications With Developer Studio > Creating Temporary Fields
WebFOCUS Release 8.0 Version 08 > App Studio > WebFOCUS App Studio Reference Guide > Creating Procedures in WebFOCUS App Studio
I don't believe a programmer should need to visit YouTube for technical assistance, but someone on the FocalPoint forum recently suggested perusing the Information Builders YouTube channel. I hope one can find something useful among the marketing material.
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
Yes, I am using the GUI. I was thinking it would be something similar to a db_lookup and hold but I must not have it written correctly as the forums formatting is a bit different than needed inside the compute box.
quote:
Originally posted by Francis Mariani: Are you using a GUI tool? The Procedure Viewer allows you to set up a DEFINE. It is documented:
WebFOCUS Release 8.0 Version 08 > Developer Studio > Creating Reporting Applications With Developer Studio > Creating Temporary Fields
WebFOCUS Release 8.0 Version 08 > App Studio > WebFOCUS App Studio Reference Guide > Creating Procedures in WebFOCUS App Studio
I don't believe a programmer should need to visit YouTube for technical assistance, but someone on the FocalPoint forum recently suggested perusing the Information Builders YouTube channel. I hope one can find something useful among the marketing material.