SAS 无法在宏执行中解释符号“≤”?

SAS unable to interpret symbol "≤" in macro execution?

您能否解释一下为什么 SAS 在宏或 proc report 中执行后将“≤”解释为“=”?

例如

%let a= ≤ ;

%put a is equal to &a;

SAS 日志显示以下消息:

SYMBOLGEN:  Macro variable A resolves to =
a is equal to =

我也用了quoting/masking函数,但没用。

≤ 不是标准 ASCII 字符集的一部分。

可能是 SAS 编辑器不支持扩展字符集,例如UTF-8 或 Unicode。

当我 copy/paste 来自浏览器的 ≤ 符号进入 SAS 编辑器时,它变成了 = 字符。

如果您希望在数据步或宏中进行小于或等于逻辑比较,只需使用 <=