cancel
Showing results for 
Search instead for 
Did you mean: 

NULL vs Space in BODS

Former Member
0 Kudos

How to write the spaces into BODS file? I am facing challenge when extracting data from one of the DB2 table to File, There are few fields which holds space a valid data but when my job completes it just shows me NULL.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Gopal,

What is the datatype of fields which includes space in target (is it varchar,char?).

Whether your file is CSV ?

Former Member
0 Kudos

Hi Gokul,

     Its of varchar datatype on target side. My target file is of type semicolon delimited.

Former Member
0 Kudos

What is your source data type? Use the same data type in the file also.

Former Member
0 Kudos

Source data type is char for one field & varchar for others.

Former Member
0 Kudos

Arun,

     Moreover I hard coded few fields in BODS with ' ' (single space) but target file showing only NULL.

Former Member
0 Kudos

Your requirement will work only if your target data type is also CHAR. Unfortunately, DS do not have a CHAR data type hence the only option is putting ' '.