DATEDIF calculates the difference between March 2, 1996, and March 1, 1997, and returns a zero because the difference is less than a year
results in 27.
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
October 18, 2006, 05:21 PM
jimster06
Additionally, you can specify workdays by setting up a calendar and holidays according to Chapter 8 in the Functions manual.
jimster06 DevStu WF 7.6.11 W7 HTML, PDF, EXL2K
October 19, 2006, 09:21 AM
Glenda
Setting up the holidays is one I've given up on. We have read and reread Chapter 8. We resorted to an "Include" for the holidays, Has any one set up a "Holidays" file?
Glenda
In FOCUS Since 1990 Production 8.2 Windows
October 19, 2006, 09:45 AM
Adolf Mergulhao
i am more concerned with capturing the working hours as you may work for 2 hours on Friday and Sat and Sun is not counted, but the function only excludes week ends.
Webfocus 7.6.2 on Windows Enterprise 2003 Server and Webfocus 7.6.2 on HP Unix Server
October 19, 2006, 11:20 AM
N.Selph
As to a holiday file. We have set one up, and it works fine.
Do you mind leeting me know how to set one up. My email address is adolf.mergulhao@bt.com
Webfocus 7.6.2 on Windows Enterprise 2003 Server and Webfocus 7.6.2 on HP Unix Server
October 19, 2006, 05:33 PM
N.Selph
Create a file with a date on each line like this for all your holidays: 20030101 20030217 20030418 Use a text editor or create with a focexec from a data source and hold as format ALPHA. Call it hdayXXXX.err. Substitute any other 4 characters for XXXX. Remember Unix is case sensitive. Put the file in .../ibi/srv71/wfs/bin (Unix). Make sure the permissions allow you to overwrite it (if you are going to update it with focexecs).
In your fex that use it you reference it as SET HDAY = XXXX
Where XXXX is what you used above.
Schedule your focexec that updates the file in Report Caster to run once a year when your data source is updated.