BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
twildone
Pyrite | Level 9

Hi....I am trying to suppress a column that is blank when I run this code. The blank column appears next to the the column labelled "Programs" in the output. Any suggestion on how to suppress this blank column. Thanks

 

proc tabulate data=ListFinal1000;
	
	var COUNT_of_StudentUID;
	class 'Academic Year'n / style=[background=lightgreen  ] order=unformatted missing;
	class "Education Status"n /	style=[background=lightgreen ] order=unformatted missing;
	class Programs / style=[background=lightgreen ] order=unformatted missing;
    classlev 'Academic Year'n / style=[background=lightgreen];
    classlev Programs / style=[background=lightgreen cellwidth=10.0cm];
    classlev "Education Status"n / style=[background=lightgreen cellwidth=3.0cm];

    table "Education Status"n=' ' * Programs=' ' * pctsum<Programs>=''*f=8.2, 'Academic Year'n * COUNT_of_StudentUID='' / box=[label='Percentage of Applications for Each Program and Academic Year' style=[backgroundcolor=lightgreen cellwidth=10.0cm]];
;
run;
1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26
Hi:
Without data, it's hard to visualize what you're seeing. I see that you have Programs nested inside Education Status with Academic Year and Count of Students in the column dimension, but since Programs is nested inside Education Status it's hard to comment since you are assigning blanks in the TABLE statement for all the variable and statistics headers in the row dimension. You could try ROW=FLOAT, or experiment with MISSING to see which might work to suppress the blank column, but it sort of depends on whether the blanks are to the left or the right or Programs, and whether the blanks are header cells or data cells -- which is hard to see without any data.
Cynthia

View solution in original post

2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi:
Without data, it's hard to visualize what you're seeing. I see that you have Programs nested inside Education Status with Academic Year and Count of Students in the column dimension, but since Programs is nested inside Education Status it's hard to comment since you are assigning blanks in the TABLE statement for all the variable and statistics headers in the row dimension. You could try ROW=FLOAT, or experiment with MISSING to see which might work to suppress the blank column, but it sort of depends on whether the blanks are to the left or the right or Programs, and whether the blanks are header cells or data cells -- which is hard to see without any data.
Cynthia
twildone
Pyrite | Level 9

Hi Cynthia,.....Thanks for your help. the suggestion of including ROW=FLOAT worked.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 872 views
  • 0 likes
  • 2 in conversation