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     [CLOSED] 7 last days from currently day

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] 7 last days from currently day
 Login/Join
 
Member
posted
Hi Folcs,

I'm trying to develop a report tha return values from the last 7 days from the day before of currently day.

Ex. today is 17/12/2014 (dd-mm-yyyy), the report must return values from 10/12 to 16/12.

The aim is not to insert manualy the start day and the last day.

Thanks in advance

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.0.06
Windows, All Outputs
 
Posts: 3 | Registered: September 24, 2014Report This Post
Virtuoso
posted Hide Post
 DEFINE FILE CAR
TODAY/MDYY = '&DATEMDYY';
WEEK/MDYY = TODAY - 7;
END
TABLE FILE CAR
PRINT CAR
TODAY WEEK
END 


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
Here's an example ...

-* SET CURRENT DATE
-SET &CUR_YYMD = &YYMD;
-*
-SET &BEG_YYMD = DATECVT((DATEADD((DATECVT (&CUR_YYMD, 'I8YYMD', 'YYMD')),'D', -7)), 'YYMD','I8YYMD');
-SET &END_YYMD = DATECVT((DATEADD((DATECVT (&CUR_YYMD, 'I8YYMD', 'YYMD')),'D', -1)), 'YYMD','I8YYMD');
-*
-SET &BEG_DATE = FPRINT(DATECVT(DATECVT(&BEG_YYMD,'I8YYMD','YYMD'),'YYMD','DMYY'),'DMYY','A10');
-SET &END_DATE = FPRINT(DATECVT(DATECVT(&END_YYMD,'I8YYMD','YYMD'),'YYMD','DMYY'),'DMYY','A10');
-*
-TYPE -------------------------------------------------
-TYPE CURRENT YYMD (CUR_YYMD) ------ &CUR_YYMD
-TYPE -------------------------------------------------
-TYPE BEGIN YYMD (BEG_YYMD) ------ &BEG_YYMD
-TYPE END YYMD (END_YYMD) ------ &END_YYMD
-TYPE -------------------------------------------------
-TYPE BEGIN DATE (BEG_DATE) ------ &BEG_DATE
-TYPE END DATE (END_DATE) ------ &END_DATE
-TYPE -------------------------------------------------
-EXIT


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report 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     [CLOSED] 7 last days from currently day

Copyright © 1996-2020 Information Builders