Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
Can you share a sample of your data?
here is the file.. open in note pad .. convert into csv..
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.
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..
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.
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.