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 know this is a super easy question and I'm almost so embarrased to ask but how do I convert the current date (TODAY()) into a format where I can do computations on it (i.e. Date comparisons using LE, GE etc...). Every thing I'm reading is saying the output is A8 and we all know that this will abend as soon as I do a computations with it. There has to be a way to Define it other than alphanumeric. Thanks
Hi Waz, I was trying to write code to query all records created within the last week (7days) and this job would be executed within Report Caster and automatically emailed to the customer. Unfortunately all my dates are in a datetime format; thus, I need to first truncate the time before I start calculating to figure out which records were created within the last week. Thanks for responding to my question!!
quote:
Originally posted by Waz: If you want the current Date and Time, you could use HGETC
If I understand you correctly, you have a date fielf - let's call it DATEF - which has a datetime format and you want it to be greater than today - 7 days. You could to the following:
-SET &DAY7=AYMD(&YYMD, -7, 'I8YYMD');
-SET &DT7=&DAY7 | ' 00:00:01';
in your TABLE:
WHERE DATEF GT DT(&DT7);
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
Dennis, there are several ways to do what you want.
As long as you have the start and end dates, this is easy. Here are some suggestions
Create a where clause using the DT function
If your source data is relational, add an extra line to the master defining the datetime field as a date (e.g. Usage:YYMD Actual: DATE), then use normal where clause to get the range
Using a DEFINE convert the datetime field to DATE (Use function HDATE), then test against this field.
I would suggest the first option as it will be more efficient.
e.g.
WHERE DT_FIELD GE DT(&Startdate 00:00AM)
WHERE DT_FIELD LT DT(&Enddate 00:00AM)
The & Dates are in the format YYMD.This message has been edited. Last edited by: Waz,