Program A :
DATA A; INPUT NAME $ YEAR X; CARDS; TOM 10 12 MARY 6 9 NANCY 4 8 RUN; PROC SORT DATA=A; BY NAME; RUN;
Program B
DATA B; INPUT NAME $ YEAR Y; CARDS; TOM 5 34 NANCY 3 11 ALICE 5 10 RUN; PROC SORT DATA=B; BY NAME; RUN;
Program C
DATA C; ______________________________;
_____________________________;
RUN;
PROC PRINT DATA=C; RUN;
|
Output table
|
Please don't just post your homework without demonstrating any own effort. This is just wasting our time plus you won't learn a things.
To give you a hint: You need to use a MERGE / by name for Data C.
And, please, don't code all upcase, because it reduced readability. Code is best posted by using the running-man icon, to preserve formatting.
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.