Unloads from DB2 (nullable fields) - How to manage this with Fastload?
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Unloads from DB2 (nullable fields) - How to... Expand / Collapse
Author
Message
Posted 6/2/2006 10:39:39 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/15/2008 9:47:49 AM
Posts: 8, Visits: 10
When unloading nullable data from DB2,
you receive always two fields.
Field one = Value
Field two = Indicator if the field is null or not.

Can you use fastload (eg. decimals) without creating two fields in your table?
Can you load immediately as a nullable field by using nullif?

For character fields you can write in the define statement things like
,ZA0102_ASFV_DT (CHAR(10), nullif='00000000000000000000'xc)

How to do this for integer of decimal types?




AXA Belgium
Post #4297
Posted 6/5/2006 1:00:23 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 7:10:35 PM
Posts: 224, Visits: 527
The NULLIF method doesn't work for numeric data types. To capture null values properly, you will need to convert your data to the kTeradata indicator format.
Post #4307
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 5:49am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.016. 7 queries. Compression Disabled.