谁能给我解释一下这是什么意思?, %在这个SAS代码中。我想将此代码转换为ECL(HPCC)。由于
PROC SQL;
create table &RD (compress=binary) as
select a.*,b.Staff_tag2
from &RD a left join (select DISTINCT ucic_id , 1 as Staff_TAG2
from BAL.BAL_&DDMMYYYY1 where prod_code = '102')b
on a.ucic_id=b.ucic_id;
QUIT;
%macro rd();
%do i=1 %to 12;
proc sql;
create table rd.RD_Closed_&&ddmmyyyy&i (compress=binary) as
select V_F_ACCT_ACCT_NUMBER as acct_no,
V_F_ACCT_FIC_CUSTOMER_REF_CODE as ucic_id
from edw.fct_all_accounts_summary
where business_dt eq &&yyyymmdd&i and V_F_ACCT_SOURCE_SYSTEM = 'FINWARERD' AND F_F_ACCT_CLOSED_IND eq 'Y';
quit;
%end;
%mend;
option mprint;
&和,,是宏变量的开始。它们解析为一个值。它们解析的值取决于它们是如何定义的。例如:
%让var =测试;
在本例中&var解析为test。但是还有其他方法可以初始化宏观变量。%-符号基本上意味着它属于宏语言。关于SAS宏有很多要说的,但我不确定你到底需要多少信息。