將值轉換為大寫。
類別: | DBCS |
類型: | NLS 巨集函數 |
%macro runrept(month); %if %kupcase(&month)=DEC %then %str(proc fsview data=reports.endyear; run;); %else %str(proc fsview data=reports.&month; run;); %mend runrept;
%runrept(DEC) %runrept(Dec) %runrept(dec)
%let a=begin; %let b=%nrstr(&a); %put KUPCASE produces: %kupcase(&b); %put QKUPCASE produces: %qkupcase(&b);
KUPCASE produces: begin QKUPCASE produces: &A