Thank you, Shmuel I fix mistakes follow from your code. In the output, some observation in date column shows the number that I want, but some show (.). So I look back to the data file. Date 10/10/1997 (date type in csv.) 10/18/1997 (general type in csv.) 10/24/1997 (general type in csv.) 10/26/1997 (general type in csv.) 10/31/1997 (general type in csv.) 11/01/1997(date type in csv.) 11/07/1997(date type in csv.) 11/08/1997(date type in csv.) This is an output Obs date Team City State OSU OPP 1 2 3 4 5 6 7 8 13797 Toronto Columbus Ohio 5 13805 Miami Oxford Ohio 0 13811 Merrimac Columbus Ohio 2 13813 Merrimac Columbus Ohio 5 13818 Clarkson Potsdam New York 1 . Clarkson Potsdam New York 6 2 . Western Columbus Ohio 1 3 . Notre Da Columbus Ohio 3 2 I assume that the problem is I have both number type and date type in the same column. As a result, the (.) show in some of the column. The log shows this statement WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed. Here all of the log 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 61 62 data hockey; 63 infile "/folders/myshortcuts/SASUniversityEdition/module 3/hockey.csv" 64 firstobs = 2 delimiter="," dsd; 65 66 input date mmddyy10. Team $ 8. City $ State $ OSU $ OPP $ ; 67 run; NOTE: The infile "/folders/myshortcuts/SASUniversityEdition/module 3/hockey.csv" is: (no system-specific pathname available), (no system-specific file attributes available) NOTE: Invalid data for date in line 7 1-10. RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0 7 11/1/1997,Clarkson,Potsdam , New York,6,2 41 date=. Team=Clarkson City= State=Potsdam OSU=New York OPP=6 _ERROR_=1 _N_=6 NOTE: Invalid data for date in line 8 1-10. 8 11/7/1997,Western Michigan,Columbus , Ohio,1,3 46 date=. Team=Western City=Michigan State=Columbus OSU=Ohio OPP=1 _ERROR_=1 _N_=7 NOTE: Invalid data for date in line 9 1-10. 9 11/8/1997,Notre Dame,Columbus , Ohio,3,2 40 date=. Team=Notre Da City=me State=Columbus OSU=Ohio OPP=3 _ERROR_=1 _N_=8 NOTE: Invalid data for date in line 14 1-10. 14 12/5/1997,Alaska-Fairbanks,Columbus , Ohio,8,3 46 date=. Team=Alaska-F City=airbanks State=Columbus OSU=Ohio OPP=8 _ERROR_=1 _N_=13 NOTE: Invalid data for date in line 15 1-10. 15 12/6/1997,Alaska-Fairbanks,Columbus , Ohio,4,0 46 date=. Team=Alaska-F City=airbanks State=Columbus OSU=Ohio OPP=4 _ERROR_=1 _N_=14 NOTE: Invalid data for date in line 18 1-10. 18 1/2/1998,Michigan,Ann Arbor, Michigan,4,2 41 date=. Team=ichigan, City=Ann Arbo State=Michigan OSU=4 OPP=2 _ERROR_=1 _N_=17 NOTE: Invalid data for date in line 19 1-10. 19 1/3/1998,Michigan,Ann Arbor, Michigan,6,0 41 date=. Team=ichigan, City=Ann Arbo State=Michigan OSU=6 OPP=0 _ERROR_=1 _N_=18 NOTE: Invalid data for date in line 20 1-10. 20 1/9/1998,Lake Superior,Columbus , Ohio,7,0 42 date=. Team=ake Supe City=rior State=Columbus OSU=Ohio OPP=7 _ERROR_=1 _N_=19 NOTE: Invalid data for date in line 21 1-10. 21 1/10/1998,Ferris State,Columbus , Ohio,5,3 42 date=. Team=Ferris S City=tate State=Columbus OSU=Ohio OPP=5 _ERROR_=1 _N_=20 NOTE: Invalid data for date in line 22 1-10. 22 1/18/1998,Bowling Green,Columbus , Ohio,4,2 43 date=. Team=Bowling City=Green State=Columbus OSU=Ohio OPP=4 _ERROR_=1 _N_=21 NOTE: Invalid data for date in line 23 1-10. 23 1/24/1998,Northern Michigan,Columbus , Ohio,2,0 47 date=. Team=Northern City=Michigan State=Columbus OSU=Ohio OPP=2 _ERROR_=1 _N_=22 NOTE: Invalid data for date in line 24 1-10. 24 1/25/1998,Notre Dame,Columbus , Ohio,5,3 40 date=. Team=Notre Da City=me State=Columbus OSU=Ohio OPP=5 _ERROR_=1 _N_=23 NOTE: Invalid data for date in line 25 1-10. 25 1/30/1998,Western Michigan,Kalamazoo, Michigan,4,2 50 date=. Team=Western City=Michigan State=Kalamazo OSU=Michigan OPP=4 _ERROR_=1 _N_=24 NOTE: Invalid data for date in line 26 1-10. 26 2/6/1998,Michigan State,Columbus , Ohio,4,2 43 date=. Team=ichigan City=State State=Columbus OSU=Ohio OPP=4 _ERROR_=1 _N_=25 NOTE: Invalid data for date in line 27 1-10. RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0 27 2/7/1998,Alaska-Fairbanks,Columbus , Ohio,4,4 45 date=. Team=laska-Fa City=irbanks State=Columbus OSU=Ohio OPP=4 _ERROR_=1 _N_=26 NOTE: Invalid data for date in line 28 1-10. 28 2/13/1998,Notre Dame,South Bend,Indiana,5,3 43 date=. Team=Notre Da City=me State=South Be OSU=Indiana OPP=5 _ERROR_=1 _N_=27 NOTE: Invalid data for date in line 29 1-10. 29 2/14/1998,Michigan State,East Lansing,Michigan,4,1 50 date=. Team=Michigan City=State State=East Lan OSU=Michigan OPP=4 _ERROR_=1 _N_=28 NOTE: Invalid data for date in line 30 1-10. 30 2/26/1998,Miami,Columbus , Ohio,5,2 35 date=. Team=Miami,Co City=lumbus State=Ohio OSU=5 OPP=2 _ERROR_=1 _N_=29 NOTE: Invalid data for date in line 31 1-10. 31 3/13/1998,Lake Superior,Columbus , Ohio,2,1 43 date=. Team=Lake Sup City=erior State=Columbus OSU=Ohio OPP=2 _ERROR_=1 _N_=30 NOTE: Invalid data for date in line 32 1-10. WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed. 32 3/14/1998,Lake Superior,Columbus , Ohio,6,0 43 date=. Team=Lake Sup City=erior State=Columbus OSU=Ohio OPP=6 _ERROR_=1 _N_=31 NOTE: 36 records were read from the infile "/folders/myshortcuts/SASUniversityEdition/module 3/hockey.csv". The minimum record length was 35. The maximum record length was 56. NOTE: The data set WORK.HOCKEY has 36 observations and 6 variables. NOTE: DATA statement used (Total process time): real time 0.06 seconds cpu time 0.02 seconds 68 69 proc print data = hockey; run; NOTE: There were 36 observations read from the data set WORK.HOCKEY. NOTE: PROCEDURE PRINT used (Total process time): real time 1.56 seconds cpu time 1.50 seconds 70 71 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 84 Thank you for your time and guiding
... View more