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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Today's date - 3
 Login/Join
 
Silver Member
posted
What is the function that I can use in a where clause for today's date minus 3 days?

I am wanting a report that lists anything that has not been updated in the past 3 days. So anything where the last date was todays date - 3.
 
Posts: 45 | Registered: March 18, 2005Report This Post
Virtuoso
posted Hide Post
-SET &DAY3=AYMD(&YYMD, -3, 'I8YYMD');


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, 2006Report This Post
Silver Member
posted Hide Post
I've tried both of the above syntax. When I put the &DAY3 or the &DAYS in my heading I get an error saying (FOC021) THE MAXIMUM HEADING/FOOTING SIZE HAS BEEN EXCEEDED
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND
 
Posts: 45 | Registered: March 18, 2005Report This Post
Virtuoso
posted Hide Post
Ginny,
FOC021 usually happens when a double-quote is missing somewhere.
Try
  
-SET &DAY3=AYMD(&YYMD, -3, 'I8YYMD');
TABLE FILE CAR
HEADING
"Day before yesterday: &DAY3 "
BY COUNTRY
END


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, 2006Report This Post
Virtuoso
posted Hide Post
Is the date you're checking a 'smart date'? If so, assuming other criteria limit the data so that everything in the database isn't returned, compute a date that is today - 3, then compute an integer that is the field date minus the computed date, then do a where total on the integer with a selection of LT 0. If I'm thinking right. I tended to avoid dialog manager in my more active days. Smiler


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
quote:
-SET &DAY3=AYMD(&YYMD, -3, 'I8YYMD');
TABLE FILE CAR
HEADING
"Day before yesterday: &DAY3 "
BY COUNTRY
END


Danny: code worked ok by me (as anticipated). Just tested it in our current release (5.3.7).

Ira
aix 533 wf 537


aix-533,websphere 5.1.1,apache-2.0,
wf 538(d), 537 (p),
==============
7.6.11 (t) aix 5312
websphere 6.1.19
apache 2.0
 
Posts: 195 | Registered: October 27, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders