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.
How do I set &WEEKID to match our week (Sunday - Saturday)? From the system date, the following returns last week's WEEKID of 200918. It seems to be reflecting Saturday - Friday. I've tried to SET WEEKFIRST to everything from 0 to 7, with no change to the output. I need to pass &WEEKID to my WHERE statements as 200919 (YYYYWW). WEEKID 200919 = 05/03/2009 - 05/09/2009 (Sunday - Saturday). If there's a better way to SET &WEEKID, please let me know.
the definition of the weeknumber is always a discussion. It depends on the first thursday of the year. and there is also a discussion if a week should start on Sunday or Monday. But what you can do is just add 1 to the result you get.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
JG, From your suggestion, I get the following errors. (FOC210) THE DATA VALUE HAS A FORMAT ERROR: ISO2 (no error with 1 - 7, but has no effect on the result) (FOC263) EXTERNAL FUNCTION OR LOAD MODULE NOT FOUND: HYYWD
Frank, Your suggestion to add 1 to the result, will not work if today is 12/31/2008. The final result would be 200853 (200852 +1), instead of 200901. Also -SET WEEKFIRST = 5 (w/RUN), has no effect on the result.
I also tried using -SET &CURR_WKEND = DATEMOV(&TODAY,'EOW'). But for the same date of 12/31/2008, I get 20081233 for end of week. The result for &CURR_WKEND should be 20090102. If I could get this to work, I could add 1 day for Sat 20090103, like DATEMOV(&TODAY,'EOW')+1. The result of Saturday always gives me the correct week id. Unfortunately, these reports need to be run Monday - Friday.
WebFOCUS 7.6.11, Windows XP, Excel, HTML, PDF
Posts: 25 | Location: Salt Lake City | Registered: June 03, 2008
This fex illustrates how to determine the week number for several dates in a row. It uses a DEFINE on the CAR file. It is sometimes difficult to use Date-time functions in Dialogue Manager, I think that is why the week number in your EDIT of HPART does not give the correct result.
From your suggestion, I get the following errors. (FOC210) THE DATA VALUE HAS A FORMAT ERROR: ISO2 (no error with 1 - 7, but has no effect on the result) (FOC263) EXTERNAL FUNCTION OR LOAD MODULE NOT FOUND: HYYWD
Although you specified in your profile that you're using 765 webfocus, these messages indicate that it is run in a lower release, probably a 71x version. These settings and routines are available as of webfocus 761 and they give the desired results in all 76x versions.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007