If these are text strings, this ought to work
data have;
input string $12.;
cards;
(100.00%
(99.0%)
(10.00%)
(5.55%)
(99%
;
data want;
set have;
if left(reverse(string)) ^=: ')' then string=cats(string,')');
run;
Please note the colon modifier in the IF statement, this is important.
Also important, if you data is arriving sometimes with right parentheses and sometimes without right parentheses, then your process needs to be fixed. In the long run, that is a much better solution than a band-aid like this.
With regards to providing us with sample data, @HitmonTran please note and follow my lead in the future, the data is provided via working SAS data step code, and not just by showing us a list.
... View more