【发布时间】:2013-07-16 20:21:00
【问题描述】:
我有一个像 &a 这样的宏变量,其值为 (1234.45)*。我正在尝试替换宏中的 ( 和 ) 并用 negative 标记替换它们,因为它是负数。
%let a=(1234.45)
我应用的一些选项是
%macro test1;
%if %substr(&a,1,1) = '(' %then %do;
%let b=%substr(&a,1,'-')
%end;
%mend;
%test1
【问题讨论】: