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] Problem with HYYWD function

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Problem with HYYWD function
 Login/Join
 
Member
posted
-SET &ECHO=ALL;
SET LINES=999999
SET WEEKFIRST = 2
SET WEEKFIRST = ISO2

DEFINE FILE CAR
TDATE1/YYMD='20020525';
HDATE1/HYYMDIA = HDTTM(TDATE1, 8, 'HYYMDIA');
ADATE1/A10 = HYYWD(HDATE1, 'A10');
TDATE2/YYMD='20020526';
HDATE2/HYYMDIA = HDTTM(TDATE2, 8, 'HYYMDIA');
ADATE2/A10 = HYYWD(HDATE2, 'A10');
TDATE3/YYMD='20020527';
HDATE3/HYYMDIA = HDTTM(TDATE3, 8, 'HYYMDIA');
ADATE3/A10 = HYYWD(HDATE3, 'A10');

END
TABLE FILE CAR
PRINT CAR COUNTRY TDATE1 TDATE2 TDATE3
ADATE1 ADATE2 ADATE3
END
-EXIT



I am working on WebFOCUS 7611 Server64bit and when I run the above query I get the ADATE2 as blank column.

I observed that the above function HYYWD is not giving correct value for some specific dates only. Following are few examples for which this function is not working.
2006/02/06 ,2006/07/18 ,2006/12/30 ,2007/07/02 ,2007/12/14 ,2008/04/30 ,2009/04/14 ,2009/09/26 ,2010/09/10 ,2011/01/26 ,2002/05/26 ,2003/05/10 ,2003/10/22 ,2004/10/06 ,2005/02/22 ,2012/01/10 ,2012/06/22 .

Please help me why this function is not woking on these dates only.

This message has been edited. Last edited by: Ahamed Thaha,


7.7.03
 
Posts: 6 | Registered: September 26, 2012Report This Post
Virtuoso
posted Hide Post
This was a known issue and was fixed in 7.6.12 and 7.7*.

I have tried in 7.703 and it works correctly.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Virtuoso
posted Hide Post
Hi,
Using your code with TDATE3=2006/02/06, I get:
COUNTRY     TDATE3      HDATE3              ADATE3                            
-------     ------      ------              ------     
ENGLAND     2006/02/06  2006/02/06 12:00AM  2006-W05-3


I'm using 7703 64-bit


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
  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] Problem with HYYWD function

Copyright © 1996-2020 Information Builders