I want to draw frequency distribution plot based on each column in dataset. I do not know how
many columns and the column names since it will change with dataset.
So i want to write a macro to draw a plot for a column of specific dataset
and then use loop.
%Macro drawplot(&dataset, &column_name)
and use loop to draw all plots for all column.
but problem is:
1. how can I get column name of dataset (if I know it is #i column in
dataset)
2. how can I get # of columns in dataset
d*******1 发帖数: 293
2
found a method using proc sql
r*****o 发帖数: 140
3
Proc Content
j**********3 发帖数: 305
4
Use macro variable to read variable name in the sashelp.vcolumn dataset.