- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 02-01-2010 10:51 AM
(1180 views)
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!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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;
PROC FORMAT;
value percentage 0-high ='9999999.99%'
other = '-99999999.99%'
;
run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Use percentn12.1