小编Pyt*_*hon的帖子

宏以调用数据集并将其连接

我知道如何从我的文件夹中调用不同的表。这是通过完成的function : %let x1 = libname.foldername。我的问题是如何使用简单的宏在1000个表上执行此操作

SAS

%Let Table1=project.table_201710; 
%Let Table2=project.table_201711;
%Let Table3=project.table_201712;
%Let Table4=project.table_201801;
%Let Table5=project.table_201802; 
%Let Table6=project.table_201803;
%Let Table7=project.table_201804;
%Let Table8=project.table_201805;
%Let Table9=project.table_201806;
%Let Table10=project.table_201807;
%Let Table11=project.table_201808;
%Let Table12=project.table_201809;

%Macro ConcatTable;
Data project.TABLE_FINALE; 
Set
%Do i=1 %To 12;
&&Table&i. 
%End;
;
Run;
%Mend ConcatTable;
%ConcatTable
Run Code Online (Sandbox Code Playgroud)

macros concatenation sas

2
推荐指数
1
解决办法
39
查看次数

标签 统计

concatenation ×1

macros ×1

sas ×1