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     Smart date in Dailogue Mgr Variable.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Smart date in Dailogue Mgr Variable.
 Login/Join
 
Member
posted
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, 2004Report This Post
Member
posted Hide Post
Environment: WebFOCUS 532 on NT
 
Posts: 20 | Location: Michigan | Registered: November 23, 2004Report This Post
Expert
posted Hide Post
&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 ---------------------------------------

-SET &MONDATE1 = AYMD(&MONDATE0, -7, 'I8YYMD');
-SET &MONDATE2 = AYMD(&MONDATE1, -7, 'I8YYMD');
-SET &MONDATE3 = AYMD(&MONDATE2, -7, 'I8YYMD');
-SET &MONDATE4 = AYMD(&MONDATE3, -7, 'I8YYMD');
-SET &MONDATE5 = AYMD(&MONDATE4, -7, 'I8YYMD');
-SET &MONDATE6 = AYMD(&MONDATE5, -7, 'I8YYMD');
-SET &MONDATE7 = AYMD(&MONDATE6, -7, 'I8YYMD');

-TYPE &MONDATE0 &MONDATE1 &MONDATE2 &MONDATE3 &MONDATE4 &MONDATE5 &MONDATE6 &MONDATE7
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Wow, this is sleek.

Thank you Francis.
 
Posts: 20 | Location: Michigan | Registered: November 23, 2004Report 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     Smart date in Dailogue Mgr Variable.

Copyright © 1996-2020 Information Builders