I recently discovered the presorted option in proc sort; it has saved me a lot of time in verifying whether very large datasets have been staged with the correct sort order as part of quality assurance requirements. However, getting the verification into a data set means parsing an external log file for the proc's NOTE. It would amazing if there was an automatic variable that captured whether a data set was presorted (1) or not (0) when the presorted option is used.