Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] (Datamigrator) NULL Values
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] (Datamigrator) NULL Values
 Login/Join
 
Gold member
posted
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
 
Posts: 61 | Registered: December 06, 2016Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 1957 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 1389 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] (Datamigrator) NULL Values

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.