将宏变量格式化为comma6

Lov*_*ust 2 format sas

%let vc = 12025;

理想输出(格式comma)是12,025;

%put %sysfunc(put(&vc,comma6.))似乎没有用.错误如下.

ERROR: The PUT function referenced in the %SYSFUNC or %QSYSFUNC macro function is not found.

Lon*_*ish 7

PUT功能不可用%SYSFUNC,但您可以使用PUTN数字值或PUTC字符.

试试:

%put %sysfunc(putn(&vc,comma6.));
Run Code Online (Sandbox Code Playgroud)