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     [CLOSED] Duration Request

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Duration Request
 Login/Join
 
Platinum Member
posted
Hello,
i am looking for a solution to show the request duration in the footing.

Regards

Christian

This message has been edited. Last edited by: Kerry,


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
 
Posts: 156 | Location: Essen Germany | Registered: December 02, 2010Report This Post
Expert
posted Hide Post
I'm thinking that the generation of the report is not the duration which you are concerned about. But that the data extraction is. If that is the case, concider this:
-SET &BEG_TIME = HHMMSS(&TOD) ;
...Data ectraction, or pre-report process, or what ever it is that's really taking the time (duration)
-SET &END_TIME = HHMMSS(&TOD) ;
TABLE FILE [filename]
...
FOOTING
"This report started at &BEG_TIME and ended at &END_TIME"
END




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
If the run time goes over midnight, I would suggest adding the date as well.

If you need to know how long down to a smaller fraction that one second, then try this.

-SET &STRT_TIME = HCNVRT(HGETC(8, 'HYYMDs'), '(HYYMDs)', 23, 'A23') ;

....

-SET &FNSH_TIME = HCNVRT(HGETC(8, 'HYYMDs'), '(HYYMDs)', 23, 'A23') ;


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
In order to get the duration, say in seconds, you could then use HDIFF to calculate the difference between finish and times provided you use their Date-Time representation.

Leveraging Waz's example:

-SET &STRT_DTTM = HGETC(8, 'HYYMDs');
-SET &STRT_TIME = HCNVRT(&STRT_DTTM, '(HYYMDs)', 23, 'A23') ;

....

-SET &FNSH_DTTM = HGETC(8, 'HYYMDs');
-SET &FNSH_TIME = HCNVRT(&FNSH_DTTM, '(HYYMDs)', 23, 'A23') ;

-SET &DURATION  = HDIFF(&FNSH_DTTM, &STRT_DTTM, 'second', 'D12.2');



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Guru
posted Hide Post
Using this technique was a bit of a habit of mine. I would grab the time from the beginning and end of each extract and report phase of the FEX and build a display of these data at the end of the FEX such that it was visible when 'displaying source.'
This was quite helpful in tuning and showing where the time was being used: not in WF code but in the SQL work.
Settled more than one argument over the years.


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report 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     [CLOSED] Duration Request

Copyright © 1996-2020 Information Builders