In reply to simone whitecloud.

You can get the trimmed data set by sorting the data and then excluding the first and last observations. You can do this in Base SAS or in SAS/IML. For example, if you have 100 observations and want to trim the smallest and largest 10 observations, sort the data and then use the FIRSTOBS= and OBS= data set options to extract the data:
data want; set SortedData(firstobs=11 obs=90); run;

The SAS/IML code would be
want = sorted[11:90,];