The %PCTL9 macro is intended to make any desired number of quantiles for a list of variables. It can also make quantile indicators and median-score trend variables. A subset of the data can be used to determine the quantile boundaries.

1. SAS Program SAS code to run pctl9 macro.
2. SAS Documentation PDF instructions for using pctl9 macro.