"6/23/2015 8:55:36 AM,6/23/2015 7:57:55 AM,test,A B,""C, D "",E-MA,F,Personal G,G one,test - TWO THREE,""I LIKE APPLE"",""ONE, TWO"",FCB,6/27/2015 - 6/27/2016,6/23/2015,BIZ,Personal,MA,NY,Personal,Group,""NYC Ins. Companies"",,,""$NYC NY-MA, (Group)"",""$NYC NY-MA, (Group)"",,,,"
The data looks like this but with 10k rows. I was first trying to use PROC IMPORT but it didn't recognize the comma(,) as a delimiter in the file. Then I tried DATA STEP INFILE but still didn't work out the problem.
Does anyone have any experience importing files with text qualifiers?
Thank you.
update
- Not sure how to insert a table here but if i use excel to import the file, specifying the comma as the delimiter and double quote as the text qualifier, it would have 30 fields. Looks like the following and sorry for the crappy table...
VAR1 VAR2 VAR3 VAR4 VAR5 VAR6 VAR7 VAR8 VAR9 VAR10 VAR11 VAR12 VAR13 VAR14 VAR15 VAR16 VAR17 VAR18 VAR19 VAR20 VAR21 VAR22 VAR23 VAR24 VAR25 VAR26 VAR27 VAR28 VAR29 VAR30
6/23/2015 8:55|6/23/2015 7:57| test| A |B C, D | E-MA |F |Personal G |G one| test - TWO THREE| I LIKE APPLE |ONE, TWO |FCB 6/27/2015 - 6/27/2016 |6/23/2015| BIZ| Personal |MA |NY| Personal |Group NYC Ins. Companies | | |$NYC NY-MA, (Group)| $NYC NY-MA, (Group) ||||
- It not a copy paste issue. I have the raw csv file and txt file.
""C, D""
- is that supposed to be"C,D"
in the final variable (one quote set around it, and one field)? – Joe