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.
TABLE FILE FACT_CSRPBCLAIM SUM CNT.INVOICE_NUMBER AS 'CLAIMCNT' BY KEYFIELD BY STWK BY FACT_CSRPBCLAIM.REGION_NAME BY FACT_CSRPBCLAIM.BUILDING_CODE BY FACT_CSRPBCLAIM.CLINIC_NAME BY FACT_CSRPBCLAIM.CLINIC_SUPERVISOR BY HIGHEST 6 STWK WHERE FACT_CSRPBCLAIM.REGION_NAME EQ ®ION; WHERE FACT_CSRPBCLAIM.BUILDING_CODE EQ &SITECD; WHERE FACT_CSRPBCLAIM.CLINIC_NAME EQ &CLINIC; WHERE FACT_CSRPBCLAIM.CLINIC_SUPERVISOR EQ &SUPERVISOR; WHERE CLM_PROCESS_DATE LE '&LASTRUNDATE'; -*WHERE CLM_PROCESS_DATE GE '&6LASTRUNDATE'; WHERE REGION_NAME IS-NOT MISSING; ON TABLE HOLD AS HINV1 FORMAT FOCUS INDEX KEYFIELD END -RUN
JOIN FILE HINV1 AT KEYFIELD TAG CLM TO ALL FILE HAPPDT AT KEYFIELD TAG APP AS JW1 WHERE CLM.KEYFIELD EQ APP.KEYFIELD; WHERE CLM.STWK EQ APP.STWK; END
TABLE FILE HINV1 SUM CLAIMCNT AS '6WKCLMCNT' APPCNT/D6 AS '6WKMRNCNT' COMPUTE PPB6/D8.2 = (CLAIMCNT/APPCNT); AS '6WKTRENDPBCLAIM' BY KEYFIELD BY REGION_NAME BY BUILDING_CODE BY CLINIC_NAME BY CLINIC_SUPERVISOR BY STWK ON TABLE HOLD AS HINV2 END
-************************************************************************** -* GET CURRENT TOTAL FOR PBCLAIM -**************************************************************************
TABLE FILE HINV2 SUM 6WKCLMCNT AS 'CURCLMCNT' 6WKMRNCNT AS 'CURMRNCNT' BY KEYFIELD BY HIGHEST 1 STWK BY REGION_NAME BY BUILDING_CODE BY CLINIC_NAME BY CLINIC_SUPERVISOR ON TABLE HOLD AS HINV3 END
---report code runs correctly here, when I run it I got CURCLMCNT=32 and CURMRNCNT=375
JOIN KEYFIELD IN HCSRVOL TO KEYFIELD IN HINV2 AS M4 END
JOIN KEYFIELD IN HCSRVOL TO KEYFIELD IN HINV3 AS M5 END -RUN
TABLE FILE HCSRVOL SUM COMPUTE CURPBCLAIMX/D8.2 = (CURCLMCNT / CURMRNCNT); AS '' COMPUTE 6WKTRENDPBCLAIMX/D8.2 = (6WKCLMCNT / 6WKMRNCNT); AS ''
-- here we have problem the CURCLMCNT / CURMRNCNT accoring for abve is 32/375 =0.08 but I got 0.00 , don't know what is wrong I am stuck and don't know what to look. can anyone help?This message has been edited. Last edited by: <Kathryn Henning>,
And can you post all your code from the last table file ?
Remember that a COMPUTE only apply on sorted/filtered data.
A way to debug may be to PRINT * from your last table file and do the math by hand. Sometime is when we're doing it according to the logic we think we've putted in place that we found our issue...
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013