07-12-2013 10:21 AM
I would like to have piece of code where I can pick data from multiple datasets and load the same into multiple sheets or tabs of one excel file. Please let me know if this is possible using PROC DATASETS. Thanks, Pawan
07-12-2013 10:37 AM
some one may come with better solution.. Here is the sample Code
/*First sql creating data set name in to macro from work library, if you have in diffrent location change the LIBname*/
select memname into : Ds separated by ' '
%do i=1 %to &sqlobs;
proc export data=&dsn outfile="\excelpath\sample.xls"