data tom;
length ID $ 3 Name $ 15;
input $ Score1-Score3 Name $;
datalines;
1 90 95 98 tom
2 78 77 75 ram
3 88 91 92 sham
;
proc print noobs;
proc contents data=tom;
run;
ID is missing in your input statement.
You should always make clear step boundaries by using a run statement, see Maxim 49.
ID is missing in your input statement.
You should always make clear step boundaries by using a run statement, see Maxim 49.
data tom;
length ID $ 3 Name $ 15;
input ID $ Score1-Score3 Name $;
datalines;
1 90 95 98 Tom
2 78 77 75 Ram
3 88 91 92 Sham
;
proc print noobs;
proc contents data=tom;
run;
Why is the observation length 48 in the output? Thanks for correcting my code:) @Kurt_Bremser
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.