Null handling in fixed width file with
Posted: Wed Dec 15, 2010 7:09 am
Date format not matching when null is coming in date fied for the fixed width file, which is reading entire string as single fiels.
sample warning:
tfpDateProcess,0: Data string ' ' does not match format '%yyyy%mm%dd': an integer was expected to match tag %yyyy.
tfpDateProcess,0: Conversion error calling conversion routine date_from_string data may have been lost
Input string is like
04568444444 620101215A
04568444444 6xxxxxxxxA
i want to handle the null part of date with some default value.
Note:null is marked as xxxxxxxx
sample warning:
tfpDateProcess,0: Data string ' ' does not match format '%yyyy%mm%dd': an integer was expected to match tag %yyyy.
tfpDateProcess,0: Conversion error calling conversion routine date_from_string data may have been lost
Input string is like
04568444444 620101215A
04568444444 6xxxxxxxxA
i want to handle the null part of date with some default value.
Note:null is marked as xxxxxxxx