Hello,
I have a file on which fields are are delimited by '|' and enclosed with '"'(double quote). I am clueless on what to do if the field itself contains a double quote. Lets say the input file has name and age -
name|age
"Mradul "|20
"Jain | "|103
"Julio"s "|1
Which, using the csv input step as described above, is being read as -
[name,age]
[Mradul,20]
[Jain |,103]
[Julio"s "|1]
What can I do if I have an extra enclosure character within the field? As age is varying, I can't read the file as fixed-width, even though name would always be 35 characters long. I've tried using a different enclosure, but some genius has entered that as well in the input. Is there anything I can do without changing the enclosure?
Much appreciated,
Mradul
I have a file on which fields are are delimited by '|' and enclosed with '"'(double quote). I am clueless on what to do if the field itself contains a double quote. Lets say the input file has name and age -
name|age
"Mradul "|20
"Jain | "|103
"Julio"s "|1
Which, using the csv input step as described above, is being read as -
[name,age]
[Mradul,20]
[Jain |,103]
[Julio"s "|1]
What can I do if I have an extra enclosure character within the field? As age is varying, I can't read the file as fixed-width, even though name would always be 35 characters long. I've tried using a different enclosure, but some genius has entered that as well in the input. Is there anything I can do without changing the enclosure?
Much appreciated,
Mradul