11-06-2017 03:17 PM
In a project, I need to make a table in SAS, I use proc tabulate to achieve it. The structure of the table works well, unless one problem bothers me as following pictures.I want to spread the title out and reduce the title height.
The table I want:
The table I have:
It is almost there. However, I cannot come up with a solution to spread the title out, I can easily change it in Excel, but the situation is I need to make the report all completed by SAS.
Any help would be greatly appreciated.
11-06-2017 08:05 PM
What is your code?
Proc tabulate does not do what you showed.
data HAVE; do CAT='A','B'; do WHEN='Very often','Often','Sometimes','Never'; output; end; end; run; proc format ; value $longb 'B'=' ksdhk jskjh khsk kjhk hkh kkhkkhdkhdk hkdhkkhkhdkdfhkk'; run; proc tabulate data=HAVE; class CAT WHEN; table n='#', CAT=' '*WHEN=' '; format CAT $longb.; run;
|A||ksdhk jskjh khsk kjhk hkh kkhkkhdkhdk hkdhkkhkhdkdfhkk|
|Never||Often||Sometimes||Very often||Never||Often||Sometimes||Very often|
11-07-2017 10:49 AM