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.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.