April 11, 2008, 04:10 PM
gwellerHoliday 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
April 11, 2008, 04:53 PM
FrankDutchsomething like
.../ibi/srvxx/wfs/bin/hdaydoff.err
if I do remember well...
But it must be in the documentation.
April 11, 2008, 05:32 PM
gwellerYou 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.
April 11, 2008, 06:06 PM
gwellerSo 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.
April 16, 2008, 12:02 PM
gwellerThanks 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