One Star

tMap truncate String !

hi,
I have to treat some file wich line begin with Spaces... like that :
" ABCDEFG"
if i make a simple mapping direct
InfilePositional ( 1 column, String, size : 12 ) -> tMap -> OutfilePositional ( 1 column, String, size : 12 )
in the out file i obtain : "ABCDEFG" without the 5 spaces...
Is it normal ?
Is it possible to suppress the TRIM left ?
2 REPLIES
Employee

Re: tMap truncate String !

I test your example with TOS 2.1.1 and it seems work well...
" ABCDEFG" is stored in the two output files.
One Star

Re: tMap truncate String !

hi,
TY.
My problem was de definition of my input file.
In the row separator fields i had : "" instead of "\n"
in that case the comportment is different.
with "\n" it conserve beginning " " of field
with "" it suppress beginning " " of field