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     [SOLVED] HDTTM in Dialogue Manager

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] HDTTM in Dialogue Manager
 Login/Join
 
Platinum Member
posted
I have written a focexec which uses Dialog Mananger to calculate the begining and ending dates for various date ranges. Below is an example of how it calculates the begining and ending dates for the current month.

-SET &TODAY = EDIT(&DATEYYMD, '9999$99$99');

-SET &BEGIN_DATE = DATECVT((DATEMOV((DATECVT(&TODAY,'I8YYMD','YYMD')),'BOM')),'YYMD','I8YYMD');
-SET &END_DATE   = DATECVT((DATEMOV((DATECVT(&TODAY,'I8YYMD','YYMD')),'EOM')),'YYMD','I8YYMD');

-TYPE &TODAY
-TYPE BEGIN_DATE = &BEGIN_DATE
-TYPE END_DATE = &END_DATE


How can I get the HDTTM function to convert the &BEGIN_DATE and &END_DATE values to DATE-TIME values?

Thank you.

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6.11, Linux, HTML, PDF, AHTML, EXCEL
 
Posts: 100 | Registered: September 15, 2010Report This Post
Virtuoso
posted Hide Post
If you check the manual for the HDTTM function, you'll notice, that the available languages for this function are reporting and maintain. So in DM it won't work. If you want to use DM to add a time portion, then just simply add ' 12:00 AM' to the &variable.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Platinum Member
posted Hide Post
GamP,

Other functions that have available languages listed as 'reporting, Maintain' work in DM. why would this be an exception?

I had tried, among other things, concatenating the time component prior to posting this question, and it did not work in the WHERE statements where these variables are needed.

So, do you or anybody else have any ideas?

Thank you.


WebFOCUS 7.6.11, Linux, HTML, PDF, AHTML, EXCEL
 
Posts: 100 | Registered: September 15, 2010Report This Post
Platinum Member
posted Hide Post
Like this:
-SET &TODAY = EDIT(&DATEYYMD, '9999$99$99');
-SET &BEGIN_DATE = DATECVT((DATEMOV((DATECVT(&TODAY,'I8YYMD','YYMD')),'BOM')),'YYMD','I8YYMD');
-SET &END_DATE   = DATECVT((DATEMOV((DATECVT(&TODAY,'I8YYMD','YYMD')),'EOM')),'YYMD','I8YYMD');
-SET &BEGIN_DATE = &BEGIN_DATE | ' 00:00:00';
-SET &END_DATE   = &END_DATE | ' 23:59:59';

Don't need the extra -SETs statements, but the lines of code were getting long.


WebFOCUS 8.2.06
 
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 2010Report This Post
Platinum Member
posted Hide Post
Thanks, dbeagan. I had done just that -- and it didn't work. Your post made realize the problem wasn't with the concatenation, it was that I hadn't added .EVAL to the variables in the WHERE statement.

Thank you!


WebFOCUS 7.6.11, Linux, HTML, PDF, AHTML, EXCEL
 
Posts: 100 | Registered: September 15, 2010Report 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     [SOLVED] HDTTM in Dialogue Manager

Copyright © 1996-2020 Information Builders