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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Executing a WebFocus report (v7.1.4) on a set time interval

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Executing a WebFocus report (v7.1.4) on a set time interval
 Login/Join
 
Silver Member
posted
Hi, I'm trying to develop a report that downloads all the data (based on a given criteria) that occurred during the last 7 days (week). For example, if today is 6/23/08 (Monday) and I want to get all activities that occurred between 6/16/08 (Monday) and the day execute this report which is 6/23/08 (Monday). Is there a function/verb that operates like "LastFullWeek or Last7Days" does in Crystal Reports. Thanks a million!!
 
Posts: 31 | Registered: November 17, 2005Report This Post
Gold member
posted Hide Post
Dennis,

Is this what you want:

-SET &DATE = '20080623';
-SET &SEVEN_DAYS_AGO = AYMD (&DATE ,-7,'I8');
-TYPE &SEVEN_DAYS_AGO

Cynthia


PROD: WebFOCUS 7.1.0 on Linux/Tomcat 5.5.12 (standalone)/Informix on AIX
TEST: WebFOCUS 7.1.3 on Linux/Tomcat 5.5.16 (standalone)/Informix on AIX
 
Posts: 53 | Location: Montreal,Quebec,Canada | Registered: February 13, 2006Report This Post
<Naak>
posted
hi lex-ia,
I trid with u r code. But i did find any out put, still it showing error. Please give some example.
Thanks,
Naak
 
Report This Post
Gold member
posted Hide Post
check at the bottom of the html page (the one thats says No HTML Ouput!)
The results of the function is displayed ....


PROD: WebFOCUS 7.1.0 on Linux/Tomcat 5.5.12 (standalone)/Informix on AIX
TEST: WebFOCUS 7.1.3 on Linux/Tomcat 5.5.16 (standalone)/Informix on AIX
 
Posts: 53 | Location: Montreal,Quebec,Canada | Registered: February 13, 2006Report This Post
Master
posted Hide Post
&DATE is a reserved word, try &MYDATE or &DATE1.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
Dennis, Naak,

Beware. When you compare a date field to a litteral, both must have the same format. For example if your field is TDATE with format MDYY you must compare it to something like '06/23/2008'.
So what is the format of the date you are using?


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
Master
posted Hide Post
Danny has a good point even after you have used the AYMD to determine 7 days ago, you may have to manipulate the format of the date to be in the same format as your data. If you are using something like Oracle or DB2 you may have to use an HDATE to strip the time off of a timestamp. Various date routines have been covered extensively in this forum. If the AYMD function does not provide what you need, I would suggest you do a search.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Executing a WebFocus report (v7.1.4) on a set time interval

Copyright © 1996-2020 Information Builders