Manu Sharma 2 Posted April 26, 2022 Share Posted April 26, 2022 Hi All I have one file where I have thousands of records, I want to convert those records to a single string with comma separated record Eg in file abc.txt 123 789 908 678 like this I have n number of records But I want all the records to be in one string eg 123,789,908,678 and so on Could you please help how to solve this. Thanks in advance -- Link to comment Share on other sites More sharing options...
Julio Gimenes 2 Posted May 18, 2022 Share Posted May 18, 2022 Hi,manu.sharma1191! You can read the file and under the transformation activity use functions normalize-spaces() and translate(), to remove additional spaces and to replace the remaining spaces to coma. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now