I'm trying to import a csv which has a variable called date. I'm trying to import it so the format once it's in a SAS table is date9 (e.g. 01MAY2021). Here is what I've tried:
Data Test;
infile "\\file.csv"
delimiter="," missover firstobs=2 dsd lrecl=32767;
informat Date ddmmyyyy.;
format Name $100.;
format Location $100.;
format Date date9.;
format Type $10.;
input Name $
Location $
Date
Type $;
run;
This currently just returns blank rows for the Date variable... The rows under the Date column in the csv are all populated as 'May-21'.