10-11-2017 02:16 PM - edited 10-11-2017 02:18 PM
I have a dataset which one of the column has a value of "-0.75" but in proc report I want to display as "-0.75%". When I apply the format percent9.2 it converts to "(75.435)". But I want to display as "-0.75%".
format x BEST8.
label x = "Raw value"
p1 = "PERCENT7.1";
input x @@;
p1 = x;
1.85185 3.44498 -0.92507 -0.7543456
proc print data=Percent noobs label; run;
10-11-2017 06:47 PM
Thank you for replying @Bruno_SAS. But PERCENTN didnt solve. It outputs as (75.43%). I want to display as -0.75%.
Show the code. One suspects you missed the format spelling. And a value to appear as -0.75% would have to be -.0075 as a decimal.
data junk; x=-.007543; run; proc print data=junk; format x percentn10.4; run;
Need further help from the community? Please ask a new question.