Varchar Field Truncation Issue : Sequential File
Posted: Thu Mar 12, 2009 4:33 pm
Hi
I am using a comma seperated sequential file as a source. One the columns called "A" in this file has a datatype VARCHAR(30).
The target is database and Column "A" is populating Column "B" of Database.(Size of B: Varchar(30)).
If the length of the incoming field is more than 30, I want to catch that record in to rejected file and continue the processing.
I have tried the option in the sequential File like "Reject Mode"= Output. It is rejected the records for Integer (/ Date Format MisMatch) DataType but not for the varchar datatype.It is reading the Column by truncating the Values.
I changed the datatype to "Char", but then I am not able to read the file.I was searching for the simillar issue in the forum but was not able to find the appropriate.
Can you please guide me on the same?
Thanks
Bob
I am using a comma seperated sequential file as a source. One the columns called "A" in this file has a datatype VARCHAR(30).
The target is database and Column "A" is populating Column "B" of Database.(Size of B: Varchar(30)).
If the length of the incoming field is more than 30, I want to catch that record in to rejected file and continue the processing.
I have tried the option in the sequential File like "Reject Mode"= Output. It is rejected the records for Integer (/ Date Format MisMatch) DataType but not for the varchar datatype.It is reading the Column by truncating the Values.
I changed the datatype to "Char", but then I am not able to read the file.I was searching for the simillar issue in the forum but was not able to find the appropriate.
Can you please guide me on the same?
Thanks
Bob