Configures SPD Server's sorting behavior when it encounters a BY clause and there is no index available.
Valid in: | SPD Server |
Default: | YES |
Restriction: | Assignments for macro variables with character input (for example, YES | NO | BINARY arguments) must be entered in uppercase (capitalized). |
Interaction: | Corresponding table option is BYSORT=. |
SPD Server performs a server sort when it encounters a BY clause and there is no index available.
SPD Server does not perform a sort when it encounters a BY clause.
%let SPDSBSRT=NO;
libname inventory sasspds "conversion_area" server=samson.5105 user="siteusr1" password="secret"; data inventory.old_autos; infile datalines delimiter=','; input year $ manufacturer $ model $ body_style $ engine_liters transmission_type $ exterior_color $ options mileage condition; datalines; 1971,Buick,Skylark,conv,5.8,A,yellow,00000001,143000,2 1982,Ford,Fiesta,hatch,1.2,M,silver,00000001,70000,3 1975,Lancia,Beta,2door,1.8,M,dk_blue,00000010,80000,4 1966,Oldsmobile,Toronado,2door,7.0,A,black,11000010,110000,3 1969,Ford,Mustang,sptrf,7.1,M,red,00000111,125000,3 ; run; title Old Autos Table with SPDSBSRT=NO; proc print data=inventory.old_autos; by model; run;
ERROR: Data set TEMPDATA.OLD_AUTOS is not sorted in ascending sequence. The current BY group has model = Skylark and the next BY group has model = Fiesta.
proc print data=inventory.old_autos(bysort=yes); by model; run;