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     Weekdays on older versions

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Weekdays on older versions
 Login/Join
 
Gold member
posted
Does anyone have an example of some code to calculate the number of weekdays between two dates on a system too old to have the newer functions for weekday/business day, etc.? (One of our versions is very outdated).

Thanks,
Stan
 
Posts: 90 | Registered: April 15, 2004Report This Post
Expert
posted Hide Post
hmmm, you have the DOWK function, yes?
and you can make at least make your dates into smartdates, yes? DATECVT for example?
or if not and your date is text then
iTEMP/I8 = EDIT(SOMEDATE);
iitemp/I8YYMD = iTEMP;
START/YYMD = iiTEMP ;

figure out what day of week your start date is
add enough days to it to get to the next sunday.
figure out what day of week your end date is,
subtract enough days to get it to the previous saturday
measure the difference
divide by 7 to get the # of weeks
multiply by 5 to get the total number of business days in those weeks.
add back whatever business days you had to adjust at both ends.
Getting the idea?
Do you have DATEMOV function? probably not, right?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
Got it...Thanks! No DATEMOV function yet on this version. We had it all working fine in WebFOCUS, but it was simply taking too long and we decided to batch up a Unix FOCUS run each night to get the data...but our version of UnixFOCUS is pretty old...as am I. Smiler

Thanks
 
Posts: 90 | Registered: April 15, 2004Report 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     Weekdays on older versions

Copyright © 1996-2020 Information Builders