Focal Point
[CLOSED] (Datamigrator) NULL Values

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

February 01, 2019, 01:07 PM
zcbillions
[CLOSED] (Datamigrator) NULL Values
Hi all,

I've looked everywhere and can't find a way to make NULL values in a field '0'. There's no SQL function.

Anyway to simply make null values '0'.

Thank you in advance.

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


WebFOCUS 8
Windows, All Outputs
February 01, 2019, 01:25 PM
MartinY
I may not properly understand your need, but in SQL you can do :

COALESCE(OldField, 0)
or
ISNULL(OldField, 0)

And in FOCUS within a DEFINE it can be:

NewField /I5 = IF OldField EQ MISSING THEN 0 ELSE OldField;

But none may work with Datamigrator...


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
February 01, 2019, 01:44 PM
FP Mod Chuck
zcbillions

You can use a define in the master file as MartinY has shown then use the DEFINED field in the data flow instead of the real field.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats