Focal Point
[CLOSED] Replace null values

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

February 09, 2010, 09:57 AM
adithya
[CLOSED] Replace null values
I am getting few null values in the report.
I want to display them as zero('0') when it is null.
I am using
BSTRF1/A40 MISSING ON= IF BSTRF EQ MISSING THEN '0' ELSE BSTRF;
It is still displaying as null

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.69
Windows
Excel, HTML, PDF,AHTML
February 09, 2010, 10:08 AM
fatboyjim
Hi,

You may try to set the NODATA to zero
 SET NODATA = 0 


Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
February 09, 2010, 04:01 PM
Waz
Missing values are a pain. Sweating


This may work.
BSTRF1/A40 MISSING OFF= IF BSTRF IS MISSING THEN '0' ELSE BSTRF;

As mentioned by Jimmy, SET NODATA will work, but will apply to all fields.

If this is from a hold file, then you could also add HOLD AS ... MISSING OFF


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!