Hello All!
Am I correct in saying that, with the code below, the dataset check will be sorted and deduped but the dataset kicks will not be sorted or deduped?
proc sort data = kicks nodupkey out=check; by edipn; run;
Thanks,
Brian
This is an excellent opportunity for experimentation:
data class;
set sashelp.class;
run;
proc sort data = class nodupkey out=class2;
by age;
run;
Data set class, a clone of sashelp.class is sorted by name. So the above uses your programming logic. Compare the CLASS2 data set (proc print data=class2;run;) to data set CLASS. They are only 19 observations long. You will have used SAS to answer your SAS question.
This is an excellent opportunity for experimentation:
data class;
set sashelp.class;
run;
proc sort data = class nodupkey out=class2;
by age;
run;
Data set class, a clone of sashelp.class is sorted by name. So the above uses your programming logic. Compare the CLASS2 data set (proc print data=class2;run;) to data set CLASS. They are only 19 observations long. You will have used SAS to answer your SAS question.
Almost. The code will not change the sort order of the kicks data set. If it were already sorted that order would remain. No records should be removed either.
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.