%macro VAR (libname, memname,outdset=var,prntvars=Y); %*---This is a utility submacro sent with and used by the sas2html macro; %let libname = %upcase(&libname); %let memname = %upcase(&memname); %if %index(&libname,.) gt 0 %then %do; %let memname = %scan(&libname,2,.); %let libname = %scan(&libname,1,.); %end; proc sql noprint; create table &outdset as select NAME, LENGTH FORMAT=6., TYPE FORMAT=$1., LABEL, FORMAT, INFORMAT, IDXUSAGE, LIBNAME, MEMNAME, NPOS, VARNUM, MEMTYPE FROM dictionary.columns where libname eq "&libname" and memname eq "&memname"; %if &prntvars eq Y %then %do; reset print; select name from &outdset; %end; %mend; /* *<============came with sas2html.sas module================== -- ** http://delphi.colorado.edu/~irm/pers/jdshome.html ** -- John D. Smith, IRM, CB 50, UofColo, Boulder, CO 80309 - (303) 492-9473 ================================ */