可以像这样构建类似的格式:
%let inr=%sysfunc(unicode(\u20B9));
proc format;
picture rupee
low - <0 = '00,000,000,000,009.99)' (prefix="(&inr")
0 - high = '00,000,000,000,009.99 ' (prefix="&inr")
;
run;
其中,应用如下:
data test;
format x rupee.;
x=34341.12; output;
x=-12343452435.44;output;
x=0; output;
run;
给出: