Sort the SASHELP.CARS data set. The data set must be sorted by the same variable that the following PROC SGRENDER block uses in its BY statement.
proc sort data=sashelp.cars out=cars; by origin; run;