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 am trying to create a usage report based on the resource analyzer SMQUERY table. I am counting the SMKEY field by procedure name.
My rpoblem is I need to divide the count by an integer depending on which procedure it is because when a report is ran, it may show as running the procedure up to 12 times, so I want to divide that total count by 12 to get the real number of times the report was ran.
My thought was: If SMRPCNAME EQ 'proc1' then ((CNT.SMKEY)/#) ELSE etc.
but I cannot get it to count up first and then divide. As a note, the SMKEY is an alphanumberic field with a legnth of 40 (it is a date/time stamp with some other info at the end).
Here is my code so far wtihout this. Does anyone have knowledge in creating custom resource analyzer reports? Thanks in advance for any assistance.
DEFINE FILE SMQUERY proc_name/A50= DECODE SMRPCNAME ( 'mits_zip_report' 'MITS Accounts & Stratum Analysis w/ Zip Code' 'registra' 'Registration Report' 'topfile' 'MITS Accounts & Stratum Report' 'waiver_report' 'Waiver & Open Audits Report' 'seperate_entity_report' 'Separate Entity Report' 'findings_and_collections_report' 'Closed Audit Activity Report' 'fc_analysis_report' 'Findings & Collections Report' 'fcb_corporate_report' 'FCB Corporate Report' ELSE 'Error-Call Admin' ); DTCVT/MDYY=DATECVT(SMDATE, 'A8YYMD', 'MDYY'); END TABLE FILE SMQUERY SUM CNT.SMKEY AS 'Times,Accessed' MAX.DTCVT AS 'Last Access Date' BY SMUSERID AS 'User' BY proc_name AS 'Procedure Name' HEADING "WebFocus Usage Report" "Report Date: <+0>&DATEtrMDYY <+0> " "Server: "Date Range: <+0>&STDATE<+0> - <+0>&ENDDATE<+0> " FOOTING "" WHERE ( SMRPCNAME NE ' ' ) AND ( SMRPCNAME IN ('mits_zip_report','registra','waiver_report','seperate_entity_report','findings_and_collections_report','fc_analysis_report','topfile','fcb_corporate_report') ); WHERE ( NOT SMUSERID IN ('BAUERL','BECKD','SCHMOK1',' ','MAYOM','HICKMK','SHOCKJ','WFADMIN','ADMIN','admin','bauerl','NCR') ); WHERE ( DTCVT GE '&STDATE' ) AND ( DTCVT LE '&ENDDATE' ); ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT &WFFMT.(,).Select type of display output.
Kevin ______________________ Production: WebFocus 7.6.11 on Win2K3 Server Test: WebFocus 7.6.11 on Win2K3 Server Formats: Excel2K, PDF, HTML
Thanks, that got me pointed in the right direction. I ended up adding the follwing compute field to the report in place of the cnt.smkey:
SUM COMPUTE REALCNT/I3 = IF SMRPCNAME EQ 'mits_zip_report' THEN ((CNT.SMKEY) / 3) ELSE IF SMRPCNAME EQ 'seperate_entity_report' THEN ((CNT.SMKEY) / 12) ELSE IF SMRPCNAME EQ 'waiver_report' THEN ((CNT.SMKEY) / 2) ELSE IF SMRPCNAME EQ 'findings_and_collections_report' THEN ((CNT.SMKEY) / 3) ELSE IF SMRPCNAME EQ 'fc_analysis_report' THEN ((CNT.SMKEY) / 7) ELSE IF SMRPCNAME EQ 'topfile' THEN ((CNT.SMKEY) / 1) ELSE IF SMRPCNAME EQ 'fcb_corporate_report' THEN ((CNT.SMKEY) / 6) ELSE IF SMRPCNAME EQ 'registra' THEN ((CNT.SMKEY) / 1) ELSE 999; AS 'Times,Accessed,(Real)'
Kevin ______________________ Production: WebFocus 7.6.11 on Win2K3 Server Test: WebFocus 7.6.11 on Win2K3 Server Formats: Excel2K, PDF, HTML