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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
CPU time
 Login/Join
 
<FOC Hero>
posted
I'm trying to get the CPU time on the remote server running MS SQL Server. &FOCCPU does not give me the same thing is "CPU" time in the EDA Console. The question is how do I query what the Web Console is showing because &FOCCPU ain't it (even if I capture &FOCCPU using -REMOTE BEGIN).
 
Report This Post
<monte2000>
posted
&FOCCPU is not yet supported under WEBFOCUS. In WEBFOCUS it is agent driven, and when the agent ends, it is too late to capture the time. Currently there is NEW Feature Request submitted to capture CPU time in WEBFOCUS.
 
Report This Post
<Pietro De Santis>
posted
OK, you can't get the real CPU time.

How about tracking the elapsed time?

Put this at the beginning of your request:

-*-- Set Report Start Date and Time -------------
-*-- Used to calculate Elapsed Time -------------
-SET &D_ST_DATE = &YYMD;
-SET &D_ST_TIME = EDIT(HHMMSS('A8'),'99$99$99');
-*-----------------------------------------------

Put this at the end of your request:

-*-- Set Report End Date and Time ---------------
-*-- Used to calculate Elapsed Time -------------
-SET &D_EN_DATE = &YYMD;
-SET &D_EN_TIME = EDIT(HHMMSS('A8'),'99$99$99');
-*-----------------------------------------------

-*-- Calculate Report Elapsed Time --------------
-SET &ST_HH = EDIT(&D_ST_TIME,'99$$$$');
-SET &ST_MM = EDIT(&D_ST_TIME,'$$99$$');
-SET &ST_SS = EDIT(&D_ST_TIME,'$$$$99');

-SET &EN_HH = EDIT(&D_EN_TIME,'99$$$$');
-SET &EN_MM = EDIT(&D_EN_TIME,'$$99$$');
-SET &EN_SS = EDIT(&D_EN_TIME,'$$$$99');

-SET &EN_HH =
- IF &D_EN_DATE GT &D_ST_DATE THEN &EN_HH + 24 ELSE &EN_HH;

-SET &ST_TIME_S = (&ST_HH * 60 *60) + (&ST_MM * 60) + &ST_SS;
-SET &EN_TIME_S = (&EN_HH * 60 *60) + (&EN_MM * 60) + &EN_SS;

-SET &ELAPSED_S = &EN_TIME_S - &ST_TIME_S;
-SET &ELAPSED_M = &ELAPSED_S / 60;
-SET &ELAPSED_R = FMOD(&ELAPSED_S, 60, 'F2');

-TYPE Elapsed time: &ELAPSED_M mins, &ELAPSED_R secs
 
Report This Post
Platinum Member
posted Hide Post
Does anyone know if this script works? I tried it a couple of times and I get gibberish..
 
Posts: 87 | Registered: August 03, 2006Report This Post
Expert
posted Hide Post
iway has a gibberish adapter ... coming out in the next version




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
Expert
posted Hide Post
Try the function that I posted here



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, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders