BookmarkSubscribeRSS Feed
Itharaju
Fluorite | Level 6
Hello Team,
I was trying to display percentages through proc report .
1.I have used format=perception8.2 for but in out it was showing only % symbol instead 0.39%.
2. One of the columns was not displaying in output result even it is available on table and in column of proc report and it was last column.

Kindly help me here.

Thanks,
Veeraswamy
2 REPLIES 2
Oligolas
Barite | Level 11

Hi,

 

hard to say without seeing your code. 

Do you see the percentages here?

proc report data=sashelp.class;
column name height heightpct;
define height / display ;
define heightpct / computed format=percent8.2;
compute heightpct;
   heightpct=height/100;
endcomp;
run;

 

________________________

- Cheers -

andreas_lds
Jade | Level 19

Interesting problem. Please post the code you have and data so that we can run the code. "data" refers to a data step using datalines, it does NOT refer to attached files.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 746 views
  • 0 likes
  • 3 in conversation