another downside of PROC SORT seems to be, that if you sort a permanent dataset and add a WHERE conditions without specifying a OUT= dataset, then you end up with a permanent dataset, that is missing the levels not included in the WHERE statement. --> very dangerous. once I had to read in all my data again into the permanent dataset from the original data sources because of this.