I am trying to import a csv file into sas using custom code. Below are the sample lines from the raw data.
Item,date,WKLY_QTY,WKLY_SALES
10001,01Apr12,3313,67536.16
10001,15Apr12,889,26577.66
10001,22Apr12,4543,65001.8
10001,29Apr12,2822,74522.02
My SAS Code is as follow:
data LOtpt.Dummy2;
infile "&InptPath.\Dummy2_CSV.csv" dsd dlm=',' FIRSTOBS=2;
input Item date DATE7. WKLY_QTY WKLY_SALES;
run;
Result I am getting is as follow:
Item date WKLY_QTY WKLY_SALES
10001 19084 . 3313
10001 19098 . 889
10001 19105 . 4543
10001 19112 . 2822
Can any one please help me with the mistake. There is some problem with date informat because when I am taking this informat as character everything is going good.