Complex Flat File trimming trailing blanks
Posted: Mon Aug 28, 2017 4:08 am
Hi
I use CFF (Complex Flat File) to populate a MS SQL DB with hundreds of CFF files. The issue I have is that the CFF use a Character native data type for string values and the trailing blanks are not trimmed automatically.
Options I have is to use the Datastage TRIM function or set ANSI_PADDING OFF on the MS SQL table. There are too many columns to implement the TRIM function. The ANSI_PADDING OFF setting is set to be discontinued for future SQL Server releases.
Any other option I can use?
thank you
Jaco
I use CFF (Complex Flat File) to populate a MS SQL DB with hundreds of CFF files. The issue I have is that the CFF use a Character native data type for string values and the trailing blanks are not trimmed automatically.
Options I have is to use the Datastage TRIM function or set ANSI_PADDING OFF on the MS SQL table. There are too many columns to implement the TRIM function. The ANSI_PADDING OFF setting is set to be discontinued for future SQL Server releases.
Any other option I can use?
thank you
Jaco