Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

trim spaces from fields

Hallo,
my input table has fields (string) with a size of 25 if for example the name 'Hunter' is stored in that field
the rest of the field is filled up with spaces.
So the output is:
'Hunter '
and I want to trim it to get the following output
'Hunter'
The input table is a AS400 and I have only read access, the destination Database is Mysql.
I use tMap.

Greetings
Peter
Labels (3)
3 Replies
Anonymous
Not applicable
Author

Hi Peter,
I assume you are using tAS400Input step to read the input table. Then if the requirement is to trim all the leading and trailing spaces of the input column, then you can go to the "Advanced settings" tab of the component and enable "Trim" for the field.
Regards,
Abhi
Anonymous
Not applicable
Author

Hi Peter,
Same info holds good for tMysqlInput component also. It has the same feature to trim the sting for desired column.
Go to tMysqlInput component --advanced settings---trim column check box
Thanks,
Prashanta Pathak
Anonymous
Not applicable
Author

Thanks Abhi, I should open my eyes 🙂