全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1096 0
2019-04-19
%macro excel_export(libname,outfile,method,filename,type);
%let libname=%upcase(&libname);
proc sql noprint;
    select memname,count(memname) into:memlist separated by "\" ,
                                   :nummem
    from dictionary.tables where libname="&libname";
quit;
  %do i=1 %to &nummem;
          %let memname&i=%scan(&memlist,&i,\);
      %if &method=onefile %then %do;
      proc export data=&libname..&&memname&i
        outfile="&outfile\&filename..&type"
              dbms=excel;
      run;
                  %end;
                        %if &method=lmuitifile %then %do;
                        proc export data=&libname..&&memname&i
        outfile="&outfile\&&memname&i...&type"
              dbms=excel;
      run;
                        %end;
  %end;
%mend excel_export;
%excel_export(D:\study\dataset\03dataset,D:\study\dataset,onefile,Data,xls);
求问为什么运行之后没有反应?

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群