⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 copylst.sas

📁 缺失数据的利器
💻 SAS
字号:
%macro copylst;
  %if (%sysfunc(filename(lstref, &path..lst)) eq 0) %then %do;
    %let file = %sysfunc(fopen(&lstref));
    %if (&file ne 0) %then %do;
      %let rc = %sysfunc(fclose(&file));
      %put Copy list.;
      data _null_;
        file print notitles linesize=133;
        infile "&path..lst" length=len end=test;
        do until (test eq 1);
          input line $varying133. len;
          if (substr(line, 1, 1) eq byte(12)) then do;
            len = len - 1;
            line = substr(line, 2, len);
            put _page_ line $varying133. len;
          end;
          else put line $varying133. len;
        end;
        output;
      run;
    %end;
  %end;
%mend copylst;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -