Focal Point
Holiday File Location

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3311011082

April 11, 2008, 04:10 PM
gweller
Holiday File Location
I am wondering if anyone can tell me where I need to store the holiday file that I create.

I have tried a few locations with no luck.

This is for use with SET HDAY = XXXX

Thanks in advance


WebFOCUS 8201M/Windows Platform
April 11, 2008, 04:53 PM
FrankDutch
something like

.../ibi/srvxx/wfs/bin/hdaydoff.err

if I do remember well...

But it must be in the documentation.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

April 11, 2008, 05:32 PM
gweller
You would think so wouldnt you....but nope, not so much....(From the Help File)

Procedure: How to Create a Holiday File

1. In a text editor, create a list of dates designated as holidays using the Rules for Creating a Holiday File.
2. Save the file:

In Windows and UNIX, the file must be HDAYxxxx.ERR

In z/OS, the file must be a member of ERRORS named HDAYxxxx.

where:

xxxx

Is a string of text four characters long.


WebFOCUS 8201M/Windows Platform
April 11, 2008, 06:06 PM
gweller
So the system is able to find the file now that I have placed it in the location specified by the good FrankDutch. But now anytime I attempt to do a BD calculation with DateDif the result is 0.

The contents of my .ERR file is

20080101
20080218
20080321
20080324
20080519
20080701
20080804
20080901
20081013
20081111
20081224
20081225
20081226

Not sure if I am missing anything, but I have double checked the documentation in the help file with no luck.

DOCUMENTATION:

Reference: Rules for Creating a Holiday File
Dates must be in YYMD format.

Dates must be in ascending order.

Each date must be on its own line.

Each year for which data exists must be included. Calling a date function with a date value outside the range of the holiday file returns a zero for business day requests.

You may include an optional description of the holiday, separated from the date by a space.


WebFOCUS 8201M/Windows Platform
April 12, 2008, 03:47 AM
Alan B
Have you checked this post?
It may help.


Alan.
WF 7.705/8.007
April 16, 2008, 12:02 PM
gweller
Thanks Alan and Frank,

Between the two of you I have it figured out.

A) The file location was indeed as Frank Suggested
B) I simply had the incorrect date formats being passed to my datedif function which resulted in the system returning a 0

Thanks Again


WebFOCUS 8201M/Windows Platform