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.
hi all, having yet another problem with hpart. It seems that weekfirst doesn't have any effect on the week being returned when using hpart. The following is a test I did changing weekfirst through all the setting (1-7) and nothing was different. Any body know if I missing something or if this is problem that needs to be fixed?
TABLE FILE CASHFLOW -* Generated by Report Assist PRINT CASH_DATE RDATE1 RDATE1_WEEK RDATE2 RDATE2_WEEK RDATE3 RDATE3_WEEK RDATE4 RDATE4_WEEK ON TABLE SET ONLINE-FMT HTML ON TABLE SET HTMLCSS ON ON TABLE SET PAGE-NUM OFF ON TABLE SET STYLE DEFLT END here's my output:
Date of Statement RDATE1 RDATE1_WEEK RDATE2 RDATE2_WEEK RDATE3 RDATE3_WEEK RDATE4 RDATE4_WEEK 01/02/1997 2004/08/04 31 2004/08/05 31 2004/08/06 31 2004/08/07 32 01/03/1997 2004/08/04 31 2004/08/05 31 2004/08/06 31 2004/08/07 32 01/04/1997 2004/08/04 31 2004/08/05 31 2004/08/06 31 2004/08/07 32This message has been edited. Last edited by: <Mabel>,
oh, yeah i see that now. it ran off my screen. The Variable WEEKFIRST is a system var and you're making it an amper var, sort of. Take the dash out. SET WEEKFIRST = 1
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Well, it looks like Sunday is not the first day of the week by default.
Add the following to the program and it should work:
SET WEEKFIRST=1
quote:
Specifies a day of the week as the start of the week. This is used in week computations by the HDIFF, HNAME, HPART, and HSETPT functions. The WEEKFIRST parameter does not change the day of the month that corresponds to each day of the week, but only specifies which day is considered the start of the week.
quote:
SET WEEKFIRST = { n|7} where: n Is a number from one to seven, where one represents Sunday and seven represents Saturday. The default value is seven, which is consistent with the Microsoft SQL Server convention.
hey pietro, if you follow my code above, you'll see that I tried that. Don't mind the '-' in front of the set statement, that was just a trial that failed. I tried every value and nothing seemed to change. By default I mean a system override that will ignore the code.
TABLE FILE CAR PRINT MODEL NOPRINT RDATE1 RDATE1_WEEK RDATE2 RDATE2_WEEK RDATE3 RDATE3_WEEK RDATE4 RDATE4_WEEK ENDThis message has been edited. Last edited by: <Mabel>,
see there you go again helping me when I'm stuck. You would'nt beleive what the problem was! it was the semi-colon after the weekfirst statement. I took it out and everything worked the way it should of.
Wheww....thought I was going crazy,...actually I was...