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

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Holiday file
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Holiday file
 Login/Join
 
Gold member
posted
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
 
Posts: 88 | Registered: September 20, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Master
posted Hide Post
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
 
Posts: 755 | Location: TX | Registered: September 25, 2007Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 88 | Registered: September 20, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
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.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Gold member
posted Hide Post
77 is my Test environment, right now iam doing this in 77.

Thanks,
Krish.


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 88 | Registered: September 20, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
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.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Expert
posted Hide Post
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.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 88 | Registered: September 20, 2010Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Holiday file

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