Focal Point
[CLOSED] How to match the ROUNDING functionality used by Cognos within WebFOCUS?

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

June 26, 2017, 02:29 PM
Doug
[CLOSED] How to match the ROUNDING functionality used by Cognos within WebFOCUS?
Is there a built in function to match the ROUNDING functionality used by Cognos within WebFOCUS?

References:
https://www.ibm.com/developerw...00-0000-000014465790

https://www.ibm.com/support/kn...doc/ids_sqs_1480.htm

Thanks, Doug

BTW: I know that We Can Do that In WebFOCUS. But, I don't want to reinvent the wheel.

This message has been edited. Last edited by: FP Mod Chuck,




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
June 27, 2017, 08:34 AM
jgelona
Both D and P formats automatically round, the difference is what is stored internally. D format keeps all significant digits and displays the rounded result. P displays and stores the rounded result. At least that has been my experience.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
June 27, 2017, 12:16 PM
Doug
Thanks John, I'll check it out, chaning the formats on the fly.

However, the rounding is different in Cognos than in WebFOCUS. WebFOCUS is comparable to Excel, Cognos is not.

I need to duplicate the Cognos functionality. Refer to those two links in my initial post for those details.

~ Thanks, Doug
June 28, 2017, 02:58 PM
jgelona
I guess you could always create a DEFINE FUNCTION to do it.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.