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.
I get a lot of date-time formatting tips from the presentation Renee Teatro gave in New Orleans titled, "That's not a date-time datatype, is it?". The link for the power point presentations is
Include this at the beginning of the program -SET &STARTIME = HHMMSS(STIME); -TYPE &STARTIME
Include this at the end of the program -SET &ENDTIME = HHMMSS(ETIME); -TYPE &ENDTIME
But it looks like it is not working. The start time is the same as the end time. I have a long report that when I time it using a stopwatch takes about 2 mins.
Am I missing something?
Thanks, Dan
Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10 QA: WebFOCUS 7.6.10, Data Migrator 7.6.10 Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8 Windows 2K3, Tomcat 5.5.17, IIS 6 Usage: HTML, PDF, Excel, Self-serve, BID and MRE
Posts: 197 | Location: Roseville, CA | Registered: January 24, 2005
Possibly. Be sure you have a -RUN after the END statement of your TABLE FILE (and before the last -SET &ENDTIME). Otherwise, both the times will be captured before the report runs.
dwf
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005
One of the bugbears that has always been commented upon is the fact that &TOD has always been set to the time at which the FOCUS session began. Over time this has become to be viewed as an asset because, combined with the HHMMSS function you can get that elapsed timing you require.
Taking advantage of the above facts, you can declare a function in your profile(s) that will then always be available -
-* Calculate seconds between final and initial time.
DEFINE FUNCTION ELAPSED(X/A1)
DAY/YYMD = HDATE(TODAY('A10'),'YYMD');
DATE/A6YMD = DAY;
BEGTIME/A8 = EDIT('&TOD.EVAL', '99$:99$:99');
ENDTIME/A8 = EDIT(HHMMSS('A8'), '99$:99$:99');
BEGAN/A20 = DATE | ' ' | BEGTIME;
ENDED/A20 = DATE | ' ' | ENDTIME;
-* Convert to time stamps
DATE_TIME1/HYYMDSA=HINPUT(20,BEGAN,10,'HYYMDS');
DATE_TIME2/HYYMDSA=HINPUT(20,ENDED,10,'HYYMDS');
-*Subtract the two time stamps, getting difference in seconds
ELAPSED/D12.2=HDIFF(DATE_TIME2, DATE_TIME1, 'SECOND', 'D12.2');
END
-RUN
-* The RUN is important to ensure that the define is actioned immediately and therefore available
-* when required.
Then when you want to access the elasped time, just set a variable to the function output value -
-* Find elapsed time
-SET &ELAPSED = ELAPSED('X');
This will cover all your elapsed timing needs (or should do?).
TThis message has been edited. Last edited by: Tony A,
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, 2004