The SAS Output Delivery System and reporting techniques

Using Parenthesis to Format Integer

Reply
Contributor
Posts: 25

Using Parenthesis to Format Integer

Do anyone know how to make a positive integer format between Parenthesis i.e.

(45%).

thanks
Contributor
Posts: 50

Re: Using Parenthesis to Format Integer

try this i hope it help

proc format;
picture pctpfmt
low - high = '(000%)'
( prefix = '(' );run;

data teste;
format a pctpfmt.;

a=25;
output;
a=54;
output;
a=100;
output;
a=160;
output;
run;
Ask a Question
Discussion stats
  • 1 reply
  • 107 views
  • 0 likes
  • 2 in conversation