This can be done by using labels and this is quick idea I can think.
for example if you have label for dataset, you can see the same in data dictionary
and when you use select * from dictionary.tables you see the below.
SASHELP
HEART
DATA
Framingham Heart Study
for example, when I create a new dataset and mention label. It stores those values in data dictionary
proc sql; create table abcd as select name, sex label='this variable contains Male and female values' , age, height, weight from sashelp.class;
and after that if I write a query proc sql; select name, label from dictionary.columns where memname ='ABCD' and libname ='WORK' and name ='Sex';
Result is
Column Name
Column Label
Sex
this variable contains Male and female values
This process can be automated by using macro. This is one way I can think of. I am pretty sure, someone might have written some paper on this.
quick search in lexjansen.com gave a paper which I feel might be interesting to you.
http://www.lexjansen.com/nesug/nesug09/bb/BB04.pdf
... View more