Pages

Sunday, August 4, 2013

Widgets

Proc sort presorted

Sometimes we sort SAS data sets even when they are already sorted, Presorted option with Proc Sort will verify the sorting order and then only will sort the data set, if required.

Syntax:

proc sort data=sample presorted;
by xyz;
run;

This will reduce the time in sorting by removing the unnecessary 
sorting of the data.

No comments:

Post a Comment