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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.