Focal Point
[SOLVED] Holiday file

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

November 19, 2010, 03:11 PM
Krishna.edara
[SOLVED] Holiday file
Hi all,

iam trying to read the list of holidays from the file, which i placed in \ibi\srv77\wfs\bin\HDAYIDAT.ERR
iam using SET HDAY = IDAT

Iam getting error message "File not found"

Can anyone help me on this?

Thanks,
Krish...

This message has been edited. Last edited by: Krishna.edara,


WebFocus-8/Windows/HTML, PDF, EXCEL
November 19, 2010, 11:48 PM
Francis Mariani
Try making the suffix of the file lower-case: HDAYIDAT.err


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
November 22, 2010, 08:22 AM
PBrightwell
check the location of the file. Are you sure it is in wfs\bin?


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
November 22, 2010, 09:13 AM
Krishna.edara
Hi
I modified the suffix to .err, but still same...
Yes the Path is correct, it is wfs\bin....

Thanks,
Krish


WebFocus-8/Windows/HTML, PDF, EXCEL
November 22, 2010, 11:41 AM
Tony A
quote:
\ibi\srv77\wfs\bin\HDAYIDAT.ERR

But your profile states that you are using 7.6.2 so your folder would be srv76 not srv77.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 22, 2010, 11:49 AM
Krishna.edara
77 is my Test environment, right now iam doing this in 77.

Thanks,
Krish.


WebFocus-8/Windows/HTML, PDF, EXCEL
November 22, 2010, 02:22 PM
Tony A
There seems to be some conflict in where the file should be.

Using the search function (top right) for HDAY, there were a few instances that stated the file should live in ibi\srvnn\wfs\bin but others that stated it should be in ibi\srvnn\home\nls (which is where the other "err" files live).

I tried it in both and only ibi\srv77\home\nls resulted in no error message, however using the sample from Norb's recent post (cheers Norb Smiler) the WD- worked but the BD- gave a return of 0 - invalid date - which resulted in the base date being returned (19001231).

If you have need of business days functions, it would be worth raising a case on InfoResponse.

Oh, and remember to use the search function, it could have saved you a lot of time.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 22, 2010, 02:32 PM
Tony A
Hmmmm, most intreaguing!

Using the code below to write the file contents rather than just typing exactly the same data, worked for Business days whereas it didn't before! Confused

I must have some spurious characters in the original when I typed it myself?

FILEDEF HDAYIDAT DISK c:\ibi\srv77\home\nls\hdayidat.err
-RUN
-WRITE HDAYIDAT 20101029 Test holiday
-RUN
SET HDAY = IDAT
SET BUSDAYS = _MTWTF_
-SET &NEWDATE = '20101031';
-SET &NEWDAT1 = DATECVT((DATEMOV(DATECVT(&NEWDATE,'I8YYMD','YYMD'), 'WD-')), 'YYMD', 'I8YYMD');
-SET &NEWDAT2 = DATECVT((DATEMOV(DATECVT(&NEWDATE,'I8YYMD','YYMD'), 'PWD')), 'YYMD', 'I8YYMD');
-SET &NEWDAT3 = DATECVT((DATEMOV(DATECVT(&NEWDATE,'I8YYMD','YYMD'), 'WD+')), 'YYMD', 'I8YYMD');
-SET &NEWDAT4 = DATECVT((DATEMOV(DATECVT(&NEWDATE,'I8YYMD','YYMD'), 'BD-')), 'YYMD', 'I8YYMD');
-SET &NEWDAT5 = DATECVT((DATEMOV(DATECVT(&NEWDATE,'I8YYMD','YYMD'), 'PBD')), 'YYMD', 'I8YYMD');
-SET &NEWDAT6 = DATECVT((DATEMOV(DATECVT(&NEWDATE,'I8YYMD','YYMD'), 'BD+')), 'YYMD', 'I8YYMD');
-? &NEWDAT

giving
 CURRENTLY DEFINED & VARIABLES STARTING WITH 'NEWDAT':
 &NEWDAT1      = 20101029
 &NEWDAT2      = 20101028
 &NEWDAT3      = 20101101
 &NEWDAT4      = 19001231
 &NEWDAT5      = 19001231
 &NEWDAT6      = 19001231
 &NEWDATE      = 20101031

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 23, 2010, 09:45 AM
Krishna.edara
Hi Tony,
It did worked on changing the path from ibi\srvnn\wfs\bin to
ibi\srv77\home\nls But Waht causes the problum,Because in 7.6 Environment it is able to fine from ibi\srvnn\wfs\bin, Why cont do that in 7.7, what makes the diffrence?

Thanks,
Krish....

This message has been edited. Last edited by: Krishna.edara,


WebFocus-8/Windows/HTML, PDF, EXCEL