Hello everyone. please I need help with replicating a listing template.
I want to display few columns using proc report based on a given template.
The columns are not staying on the same line. About three columns continue to the next line which is not looking good. This occurs because the cellwidth for each column is around 25. If I should reduce the cellwidth, the columns will stay on this same line, which is perfect. However, the template I'm trying to copy is well spaced around 25 width.
How can I retain the width(around 25) I want and still maintian the columns on the same line?
I have tried to use the papersize option to increase the size of the page, it is not working.
What can I do, please?
Thanks all for your replies.
Please provide the code and sample data. Show us the incorrect output.
@PrinceAde wrote:
Hello everyone. please I need help with replicating a listing template.
I want to display few columns using proc report based on a given template.
The columns are not staying on the same line. About three columns continue to the next line which is not looking good. This occurs because the cellwidth for each column is around 25. If I should reduce the cellwidth, the columns will stay on this same line, which is perfect. However, the template I'm trying to copy is well spaced around 25 width.
How can I retain the width(around 25) I want and still maintian the columns on the same line?I have tried to use the papersize option to increase the size of the page, it is not working.
What can I do, please?Thanks all for your replies.
25 what? If you are counting letters to estimate space welcome to 1984. Character "space" varies depending on the display font and most of the default fonts used with SAS for output in HTML (results window), RTF, PDF, Excel will use proportional fonts as well. Which means that "iiii" takes up much less space than "WWWW" and is a very unreliable way to describe width.
SAS output for proc report has multiple units that you can use to control width of cells (and other things) 25in (likely way too large) 25mm, 25CM, 25px (pixels are display device dependent and also someone unreliable because you don't know what resolution a reader's monitor may have) in some cases percent of display width, EM and EX typesetting measurements or PT (printer's point often used as a Font size).
In some usages if you specify a "width" of 25 with no unit specified the result will be 25/150 inches.
If you have to specify widths then I strongly recommend using a unit of measure you are familiar width and understand.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.
Ready to level-up your skills? Choose your own adventure.