Focal Point
Bug in RECOMPUTE WF8007 [CLOSED]

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5887094076

May 06, 2014, 02:39 PM
Danny-SRL
Bug in RECOMPUTE WF8007 [CLOSED]
See the following:
TABLE FILE CAR
SUM
     DEALER_COST
     RETAIL_COST
     SALES
     COMPUTE GAP/D7 = RETAIL_COST - DEALER_COST;
     COMPUTE RATIO/D4.2L = GAP / SALES;
BY  LOWEST COUNTRY 
BY  LOWEST CAR
ON COUNTRY RECOMPUTE
     CNT. SALES
     GAP
     RATIO MULTILINES AS '*TOTAL'
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
END

In WF8007 you will notice that on the total line RATIO is ****.
This does not occur in 8002.
If you change the format of GAP to D12.2, you will see that RATIO is recomputed using CNT. SALES and not SALES.

This message has been edited. Last edited by: Danny-SRL,


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

May 06, 2014, 04:05 PM
Tony A
... and if you remove the space between CNT. and SALES? Does not that give the correct value?

TABLE FILE CAR
SUM
     DEALER_COST
     RETAIL_COST
     SALES
     COMPUTE GAP/D7 = RETAIL_COST - DEALER_COST;
     COMPUTE RATIO/D4.2L = GAP / SALES;
BY  LOWEST COUNTRY 
BY  LOWEST CAR
ON COUNTRY RECOMPUTE
     CNT.SALES
     GAP
     RATIO MULTILINES AS '*TOTAL'
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
END

T



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 
May 13, 2014, 11:38 AM
Danny-SRL
Tony,
Sorry about the delay.
Your solution is correct.
However, the space was produced by the GUI and it is the correct syntax by the book (see pages 322 and following in wf77crlang.pdf).
So...


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

May 13, 2014, 12:13 PM
Tony A
quote:
the space was produced by the GUI

Hi Danny,

So, you're using the GUI these days ....... Wink

It comes to us all eventually ....


T



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 
May 13, 2014, 01:06 PM
Danny-SRL
Hi Tony,
In moments of curiosity... Big Grin


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF