Null_field for a timestamp field in an orchestrate schema
Posted: Fri Mar 13, 2009 12:26 pm
Hi everybody,
I'm reading a flat file which is interpreted by an orchestrate schema called in an ColumnImport stage.
My schema is written like that :
record nullable {delim=';', final_delim='end', record_delim='\n', timestamp_format="%yyyy%mm%dd %hh:%nn"}
(
CD_ENREG : not_nullable string[max=1];
DT_1 : nullable Timestamp{null_field="19000101 00:00"};
)
When the field DT_1 is NULL in the flat file, the record is rejected because DS couldn't put the value 19000101 00:00 instead of the NULL value.
In the project properties (in the Administrator tool), timestamp are defined like that : %yyyy-%mm-%dd %hh:%nn:%ss
If i use a null_field like "1900-01-01 00:00:00", the record is also rejected because "null_field" length (19) must match field's fixed width (14)...
Do anybody have a value for this null_field?
Thanks by advance,
JPG
I'm reading a flat file which is interpreted by an orchestrate schema called in an ColumnImport stage.
My schema is written like that :
record nullable {delim=';', final_delim='end', record_delim='\n', timestamp_format="%yyyy%mm%dd %hh:%nn"}
(
CD_ENREG : not_nullable string[max=1];
DT_1 : nullable Timestamp{null_field="19000101 00:00"};
)
When the field DT_1 is NULL in the flat file, the record is rejected because DS couldn't put the value 19000101 00:00 instead of the NULL value.
In the project properties (in the Administrator tool), timestamp are defined like that : %yyyy-%mm-%dd %hh:%nn:%ss
If i use a null_field like "1900-01-01 00:00:00", the record is also rejected because "null_field" length (19) must match field's fixed width (14)...
Do anybody have a value for this null_field?
Thanks by advance,
JPG