Help using Base SAS procedures

format for percentage

Reply
Contributor
Posts: 74

format for percentage

when I used put(value, percent12.1), I got a parenthesis around a negative value, e.g. -37.2% is output as '(37.2%)'. How can I output just '-37.2%'? What is the correct format name? thanks!
Contributor
Posts: 34

Re: format for percentage

Posted in reply to abdullala
You Can use PROC FORMAT to define your owne format style for this. Like below.
PROC FORMAT;
value percentage 0-high ='9999999.99%'
other = '-99999999.99%'
;
run;
Super Contributor
Posts: 359

Re: format for percentage

Posted in reply to abdullala
Use percentn12.1
Ask a Question
Discussion stats
  • 2 replies
  • 140 views
  • 0 likes
  • 3 in conversation