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.
Objective: Allocate current week and previous 7 weeks of weekly files to summarize data for graphs in a self serv app.
Situation: Weekly files are created on each MONDAY and the last qualifier of the weekly file name is the date date it was created. eg. D:/APPS/SALES/PERF/WK050828.TXT D:/APPS/SALES/PERF/WK050819.TXT D:/APPS/SALES/PERF/WK050812.TXT
Problem: In dailoge mgr SET variables how can I
1.get current week's Monday date.
2.Once I get this date, how can I convert it into SMART date to do the math to determine previous mondays dates.
I will appreciate any suggestions.
Thank you,
Posts: 20 | Location: Michigan | Registered: November 23, 2004
&YYMD is a system variable that contains the current date.
DATEMOV is a date function to move the date to a particular point.
DATECVT is required because DATEMOV only works with Smart Dates and we want to use it in Dialog Manager. So, we have to convert &YYMD to a Smart Date, then apply DATEMOV, then convert the result of DATEMOV back to I8YYMD.
-SET &ECHO=ALL;
-*-- Determine the beginning of the week for the current date (Monday) --------- -SET &MONDATE0 = - DATECVT((DATEMOV((DATECVT(&YYMD,'I8YYMD','YYMD')),'BOW')),'YYMD','I8YYMD');
-*-- Calulate the previous seven Mondays ---------------------------------------