Hi All, I am trying to export all the variable name, their trype(char, num, data), along with their dataset name to a Excel sheet. Tried the following code(thanks to SASKIWI) , but got only the list of variables name and respective dataset thary belong, i need the variable type as well. Please suggest /* Note that value of libname is UPPERCASE */ proc sql; create table columns as select name as variable ,memname as table_name from dictionary.columns where libname = 'WORK' ; quit; /* SAS 9.4 or later */ ods excel file="C:\e_Contents.xlsx" style=minimal; proc print data=columns; run; ods excel close; /* earlier versions, using SAS/ACCESS to PC Files */ PROC EXPORT data = columns OUTFILE = 'e_Contents.xls' DBMS = EXCEL REPLACE; SHEET='VARLIST'; RUN;
... View more