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.
Then, I was asked to modify the fex to combine the totals for OTF into the totals for ED-2BED. I assumed that I could successfully to this with the following code:
quote:
TABLE FILE EDTIMESN HEADING CENTER "LOOK AT THOSE NEW FIELDS - MATCH METHOD" PRINT -*GOTO NEWDATA TOTEDBPTS TOTOTFPTS P_OTF P4DURATION P4DURHRS P4OTF P4OTFHRS -* COMPUTE ALLPTS/I9 = TOTEDBPTS + TOTOTFPTS; COMPUTE ALLDUR/I9 = P4DURATION + P4OTF; COMPUTE ALLDURHRS/I9 = P4DURHRS + P4OTFHRS; COMPUTE ALLMEET/I9 = IF (ALLDURHRS LE 3) AND (ALLPTS GE 1) THEN 1 ELSE 0; COMPUTE ALLNMEET/I9 = IF (ALLMEET EQ 0) AND (ALLPTS GE 1) THEN 1 ELSE 0; -* BADMRN -* BY UNIT BY EDP ON TABLE HOLD AS GOODPTS END -RUN -* TABLE FILE GOODPTS SUM ALLPTS AS 'TOTAL,ED-2-BED,VOLUME' LST.BADMRN AS 'ERRORS' -**** AVE.ALLDUR AS 'AVERAGE,MINUTES' AVE.ALLDURHRS AS 'AVERAGE,HOURS' COMPUTE TOTMEETN/D10 = ALLMEET + ALLNMEET; NOPRINT ALLMEET AS 'Pts.,< 3hrs.' ALLNMEET AS 'Pts.,> 3hrs.' COMPUTE PCTALLMEET/D10 = (ALLMEET/TOTMEETN) * 100; AS 'PTS, % YES' COMPUTE PCTALLNMEET/D10 = (ALLNMEET/TOTMEETN) * 100; AS 'PTS, % NO' COMPUTE PAMFLAG/A1 = IF PCTALLMEET GE 91 AND PCTALLMEET LE 100 THEN '1' ELSE IF PCTALLMEET EQ 90 THEN '2' ELSE IF PCTALLMEET GE 75 AND PCTALLMEET LE 89 THEN '3' ELSE IF PCTALLMEET GE 0 AND PCTALLMEET LE 74 THEN '4' ELSE '0'; NOPRINT -* BY UNIT
This is the report I am getting:
quote:
UNIT ED-2-BED AVERAGE AVERAGE Pts. Pts. PTS PTS VOLUME MINUTES HOURS <3hrs >3hrs % YES % NO
Trauma 14 145.00 1 11 3 79 21
I have successfully merged the total # of patients, but the other fields (AVerage Minutes, Average Hours, Pts <3hrs, Pts >3hrs, PTS % YES and PTS % NO) do not account for the (expected) combined totals for ED-2BED and OTF.
Does anyone have any ideas on what I am missing?
Thanks!!This message has been edited. Last edited by: Kerry,
First thing I would do is to check the information in the hold file (GOODPTS) to see if that is correct and as expected. My suspicion is that there is some unexpected behaviour prior to the final table that produces the result.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007