Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Holiday file
 Login/Join
 
Platinum 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: 106 | Registered: September 20, 2010Report 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, 2005Report 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, 2007Report This Post
Platinum 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: 106 | Registered: September 20, 2010Report 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.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum 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: 106 | Registered: September 20, 2010Report 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.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum 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: 106 | Registered: September 20, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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

Copyright © 1996-2020 Information Builders