Handling nulls for Timestamp, date in Schema file
Posted: Sat Aug 25, 2012 6:25 am
Hi All,
I am using schema file concept to extract data from .txt file to dataset then load into Table.
Actually, we need to load 50 tables from 50 files..that's why We are using Schema file concept with Single extract and single load job.
I am facing the problem with handling nulls for Timestamp, date in Schema file only. not in Datastage transformer or NulltoValues..etc..!!
Please let me know How can we handle nulls for those two datatypes and default some values when null come in those fields..!!
My schema file:
record { delim='#', final_delim=end, record_delim_string="\n", date_format='%yyyy-%mm-%dd', quote=none}
( REQ_ID: int64;
REQ_SUBM_TS: nullable TIMESTAMP {null_field='1900-01-01 00:00:00'};
)
Please help on this asap..!
Best Regards,
Williams
DataStage Developer,
IBM.
I am using schema file concept to extract data from .txt file to dataset then load into Table.
Actually, we need to load 50 tables from 50 files..that's why We are using Schema file concept with Single extract and single load job.
I am facing the problem with handling nulls for Timestamp, date in Schema file only. not in Datastage transformer or NulltoValues..etc..!!
Please let me know How can we handle nulls for those two datatypes and default some values when null come in those fields..!!
My schema file:
record { delim='#', final_delim=end, record_delim_string="\n", date_format='%yyyy-%mm-%dd', quote=none}
( REQ_ID: int64;
REQ_SUBM_TS: nullable TIMESTAMP {null_field='1900-01-01 00:00:00'};
)
Please help on this asap..!
Best Regards,
Williams
DataStage Developer,
IBM.