Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

load comma and space separated fields

hi

Data is in text file. I converted into csv and fields are separated by commas and some are with spaces.

how can i extract data as correct fields, which has combination of comma and space separated fields?

6 Replies
iktrayanov
Creator III
Creator III

Can you share a sample of your data?

Anonymous
Not applicable
Author

here is the file.. open in note pad .. convert into csv..

Not applicable
Author

Hi Praveena, First you need to load file with any delimiter and then creates the fields with subfield function.

Please find the attached file for reference.

Anonymous
Not applicable
Author

Hi Dathu,

Thanks but you see irregularity of data representing in fields on  6th row from last . That's data structure problem.. I guess we cant fix it until data is in proper format because we can able to look data and may fix in one file here but not in all..

Not applicable
Author

First Solution would be an extension to Dathu's solution... Write a loop to check for space or ',' using subfield to write values to each column

Second one is to clean up your data. if you have etl tools in development process that should take care of it. else you might have to do it manually.

Not applicable
Author

If you get the all the files and look into into files. After that you can write what you need and what is the o/p.