Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Go
New
Search
Notify
Tools
Reply
  
Holiday File
 Login/Join
 
<kj>
posted
Where do I have to store the Holiday file (HDAYxxx) inorder to access it from a fex file? I was trying to look at the Webfocus documentation, could not find in any document.
I am using WEbfocus 5.2.1 on Win2k.

Thanks in advance.
kj
 
Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Working fine, I have:

c:\ibi\srv52\wfs\ibi\bin\hday2004.err

Regards,
Mikel
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Reply With QuoteReport This Post
<kj>
posted
I have created the file HDAYFX12.ERR in c:\ibi\srv52\wfs\ibi\bin folder.

The HDAYFX12.ERR has
20030101 NewYear Day
20030526 Memorial Day
20030704 independence Day
20030901 Labor Day
20031127 Thanks Giving Day
20031225 Christmas Day
20040101 NewYear Day
20040531 Memorial Day
20040704 independence Day
20040906 Labor Day
20041125 Thanks Giving Day
20041225 Christmas Day

SET HDAY = FX12
TABLE FILE CAR
COMPUTE DTDIFF/D12.2 = DATEDIF(20031220, 20031231, 'BD');
END
I am getting 0 for DTDIFF.
Any Idea why it is not doing proper?
Thanks,
kj
 
Reply With QuoteReport This Post
Platinum Member
posted Hide Post
It seems that DATEDIF function with 'BD' unit, needs smart date formats, not integer values.


SET HDAY = FX12
SET BUSDAYS = _MTWTF_
-RUN

TABLE FILE CAR
PRINT
COUNTRY
COMPUTE DAT1/YYMD = 20031220 ;
COMPUTE DAT2/YYMD = 20031231 ;
COMPUTE DTDIFF/I2 = DATEDIF(DAT1, DAT2, 'BD');
END
With your holiday file, we get:

COUNTRY DAT1 DAT2 DTDIFF
------- ---------- ---------- ------
ENGLAND 2003/12/20 2003/12/31 6
...
Regards,
Mikel

This message has been edited. Last edited by: <Mabel>,
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Reply With QuoteReport This Post
  Powered by Social Strata  
 


Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.