Reading a CSV file in SASStat/transfer is the easy way to transfer Excel .csv files when it works and is handy, but SAS can read a CSV file if you know the tricks.
Exampleinfile "file.csv" dlm='2C0D'x dsd missover lrecl=10000 firstobs=2; input a b c d; where '2C' is hexadecimal for decimal 44 which represents ',' , and '0D' is hexadecimal for decimal 13 which represents '\r'
It isn't at all clear why the first 4 items are not defaults on the infile statement, at least for .csv files - they are in many programming languages. I thank Jean Roth for these solutions.
Daniel Feenberg |

National Bureau of Economic Research, 1050 Massachusetts Ave.,
Cambridge, MA 02138; 617-868-3900; email: info@nber.org








