Focal Point
[SOLVED]null value in a P9.3 field

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

October 23, 2018, 02:44 PM
Trudy
[SOLVED]null value in a P9.3 field
I am creating a Define field as a P9.3 and by default the value of an empty field displays as .000. I want it to be null/blank. Any thoughts on how I can achieve this?

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


WF8
Windows
October 23, 2018, 03:26 PM
pav
Try this.
 SET NODATA=''
DEFINE FILE CAR
TEST/P9.3 MISSING ON=IF SALES EQ '' THEN MISSING ELSE SALES;
END
TABLE FILE CAR
PRINT
TEST
*
END
-RUN 

October 23, 2018, 03:56 PM
Waz
Or use zero suppress.

Field/P9.3S = MyField ;

Very much depends on what you are doing with the report.

If the format is some sort of export like CSV or Excel, and you want the "blank" then use MISSING, but if its a formatted output like HTML or PDF, then this should work for you.


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!

October 23, 2018, 03:58 PM
pav
Field/P9.3S = MyField ;

Good One