How to read variable names in a SAS data set?

后端 未结 5 861
借酒劲吻你
借酒劲吻你 2020-12-28 18:55

Are there any statements\\functions capable of get the name of variables? Preferrably putting them into a column of another data set, a text field or a macro variable.

5条回答
  •  清歌不尽
    2020-12-28 19:24

    PROC CONTENTS would be the quickest way to get that information in a dataset. Column names can be found in the column NAME.

    proc contents data=sashelp.class out=contents noprint;
    run;
    

提交回复
热议问题