SQL Loader -- Treating Invalid Date as NULL [message #70965] |
Tue, 20 August 2002 04:22 |
Scot
Messages: 7 Registered: August 2002
|
Junior Member |
|
|
I am loading fixed width positional data, some of which contains dates. By default, if a field is blank, it will be loaded as NULL, but it will be loaded.
But, assume the date mask for a field is 'mmddyyyy'. If the field contains an invalid date, such as:
'00000000' (invalid everything, all zeros)
or
'99112002' (invalid month)
The default behavior is to fail to load the record, writing it to the .bad file. I would like to specify that these situations be loaded successfully (not written to the .bad file), using a NULL for the value of the column. How do I do this?
|
|
|
|