I am trying to read a data set in to SAS that includes dates. I have been trying the following code, but it isn't working.
DATA baseball;
FILENAME webpage URL 'http://people.stat.sc.edu/hitchcock/baseballroster.txt';
INFILE webpage missover;
INPUT name $ 1-15 height 19-22 weight 24-26 position $ 29-38 yearsonteam @40 birthday MMDDYY8. 42-49 starting MMDDYY8. 51-58;
RUN;
PROC PRINT DATA=baseball;
RUN;
I read the yearsonteam, dates with modified list input
DATA baseball;
FILENAME webpage URL 'http://people.stat.sc.edu/hitchcock/baseballroster.txt';
INFILE webpage missover;
INPUT name $ 1-15 height $ 19-22 weight 24-26 position $ 29-38 yearsonteam birthday : MMDDYY8. starting : MMDDYY8. ;
format birthday starting mmddyy8.;
RUN;
I read the yearsonteam, dates with modified list input
DATA baseball;
FILENAME webpage URL 'http://people.stat.sc.edu/hitchcock/baseballroster.txt';
INFILE webpage missover;
INPUT name $ 1-15 height $ 19-22 weight 24-26 position $ 29-38 yearsonteam birthday : MMDDYY8. starting : MMDDYY8. ;
format birthday starting mmddyy8.;
RUN;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: