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 procedure that will be run in Report Caster that pulls information based on the AddDate field. I want it to pull information based on whether the AddDate field is less than or equal to &YYMD (RunDate) or greater than or equal to &YYMD - 5 (RunDateMin5).
What is the best way to do this? Should I define the fields in the metadata and then apply the filter in the procedure? When I tried this I used &YYMD as RunDate and DTADD(&YYMD,DAY,-5) as RunDateMin5. But I get no values for RunDateMin5.
Is this the best way to apply this filter and if so why do I get no values for RunDateMin5?This message has been edited. Last edited by: <Kathryn Henning>,
What is the benefit from doing it as a SET value in the procedure as opposed to creating it as a defined item in the metadata. What if I want to use it continually in other queries? I can't seem to get the format correct for filtering on if I create the RunDateMin5 as a define.
Defines are created to add columns to a table, where sets are more for console fex level type stuff.
Method is the same and will work on Defines as well.
DEFINE FILE CAR
MYDATE/M-D-YY = DATEADD('&YYMD', 'D', -5);
END
TABLE FILE CAR
PRINT MYDATE
BY COUNTRY
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
END
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
As Gavin: stated, Defines add a value for every row to your table, so there's overhead involved. If you are calculating a static value, use Dialogue Manager whenever possible.
TABLE FILE CAR
PRINT COMPUTE MYDATE/M-D-YY = DATEADD('&YYMD', 'D', -5);
BY COUNTRY
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
END
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server