Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rounding in webfocus

Status
Not open for further replies.

amarg

Programmer
Nov 19, 2002
106
0
0
IN
This syntax is throwing error in Webfocus.

TOT_DATA_VOL1/D13.4=ROUND(TOT_DATA_VOL/1024,4,'D13.4');


0 ERROR AT OR NEAR LINE 90 IN PROCEDURE mprm_irs_23716FOCEXEC *
(FOC263) EXTERNAL FUNCTION OR LOAD MODULE NOT FOUND: ROUND

As per my understanding , ROUND is not a system function in
WEBFOCUS version 7.7.03 ( version on Linux ) .On the contrary ,
it is a system function in FOCUS 6.9.04

As per my understanding , it cannot be gainsaid that ROUND needs to be defined as a
user defined function or variable needs to be implicitly rounded without using a function .
I am a newbie to focus/webfocus .
Please suggest on the root cause/solution in case the above approach is not in the right direction

 
Have not used FOCUS for a long time but try the following instead.

TOT_DATA_VOL1 /D13.4 = ROUND( (TOT_DATA_VOL / 1024), 4, TOT_DATA_VOL1);

Regards
 
Hi NollaunoUK ,
TOT_DATA_VOL1 /D13.4 = ROUND( (TOT_DATA_VOL / 1024), 4, TOT_DATA_VOL1);
Tried this but not working as ROUND is not system function in webfocus.

TOT_DATA_VOL4/P13.4 = TOT_DATA_VOL/1024;
But above is also giving same result as ROUND.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top