I want this Data to print in single page but it is splitting In two. Any suggestion please?
ods pdf file='c:\temp\temp.pdf' style=journal;
proc report data=sashelp.heart(obs=100) nowd style={outputwidth=100%};
define _all_/style(column)={cellwidth=5%};
run;
ods pdf close;
Proc Print output does that when the length of "printed" line exceeds the display area available.
You could use STYLE overrides on VAR statements to reduce the width of displayed columns or provide a larger space for the display.
It is extremely hard to tell what your code is as pictures are not clear but it appears you may be using PDF output. You can use the SAS Options statement, probably should be before the ODS PDF statement, to set either the ORIENTATION to landscape or the PAPERSIZE option to some larger display are or use a different ODS style that uses smaller fonts to reduce the space used.
I would start with
options orientation=landscape;
However, if your table is longer than the resulting rotation of the print area will display you will have to use Papersize and that will depend on the actual data. So look in the online help for the options.
Hi: Linesize and Pagesize options are ignored by ODS DESTINATIONS. Especially destinations like ODS PDF and ODS RTF and ODS HTML and all the others except for LISTING really do not use Linesize and Pagesize options. Your output looked like RTF or PDF. As mentioned, your code is hard to read since it is a picture of a screen.
Cynthia
@gema wrote:
Those are valid options in SAS. I typed my response in the reply box, so I am confused. I wasn't referring to ODS. Thanks,
It is very hard to read but original question is sending output to ODS PDF. So for a workable solution to that question the should related to something that will affect output in ODS PDF.
ods pdf file='c:\temp\temp.pdf' style=journal;
proc report data=sashelp.heart(obs=100) nowd style={outputwidth=100%};
define _all_/style(column)={cellwidth=5%};
run;
ods pdf close;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.