Hello, I'm trying to import a CSV file. This is the first 5 rows with the header: ACCTN,PURPOSE,VISIT_DATE,ENTITY,ID
12282,3,7/17/2012,5,API
20083,8,6/12/2012,5,LEO
20082,9,6/12/2012,5,LEO
20129,8,6/14/2012,5,LEO
20063,8,6/14/2012,5,LEO This is my data step to bring it in: DATA TEST;
INFILE "C:\test.csv" DLM=',' MISSOVER DSD FIRSTOBS=2;
INPUT
ACCTN $
PURPOSE $
VISIT_DATE $
ENTITY $
ID $;
RUN; This is the output: VISIT_DATE is cut off. I guess I don't understand how SAS is working here. I thought by specifying the delimiter character it would give the VISIT_DATE field a variable length but it always cuts it off at 8 length. When I try changing the length to 10 it moves past the delimiter into the other field. So I guess SAS can only read fixed width files? What am I missing here?
... View more