The SAS Output Delivery System and reporting techniques

Help with Proc Print NOBYLINE statement

Reply
N/A
Posts: 0

Help with Proc Print NOBYLINE statement

Hi ,

I'm using code below for my report and willing to get all the report in one page. I'm also using NOBYLINE statement in my option to suppress the page break for each by group but doesn't work. Can someone let me know where I'm going wrong?

options nobyline;
proc print data=info split='*';
by centerno ;
ID centerno gender;
var race age;
Run;


Thanks for your time.

Regards,
Matt
Super Contributor
Super Contributor
Posts: 3,174

Re: Help with Proc Print NOBYLINE statement

Posted in reply to deleted_user
The option NOBYLINE does not suppress page breaks, it only suppresses the SAS-generated BY statement variable/value combinations you normally find with PROC PRINT.

To suppress (or at least reduce) the SAS-generated pagination event, you can set OPTIONS PAGESIZE=MAX; in your SAS program prior to the PROC PRINT invocation.

WARNING: If you are using ODS HTML, however, you will have a different challenge with pagination.

Scott Barry
SBBWorks, Inc.

Recommended Google advanced search argument for topic-related references:

nobyline site:sas.com
Valued Guide
Posts: 2,177

Re: Help with Proc Print NOBYLINE statement

Posted in reply to deleted_user
SASMatt
that is very few columns!
How wide are they? What variable lengths and formats have they.
To check a number of printing options, please post the log reported when you submit this code:
proc options group = listcontrol ;run;


PeterC
SAS Super FREQ
Posts: 8,868

Re: Help with Proc Print NOBYLINE statement

Posted in reply to deleted_user
If you are using ODS PDF or ODS RTF, you can suppress page breaks by using the STARTPAGE=NO option:

[pre]
ods pdf file='c:\temp\nobr.pdf' startpage=no;
ods rtf file='c:\temp\nobr.rtf' startpage=no;
...rest of code;
ods _all_ close;
[/pre]

cynthia
Ask a Question
Discussion stats
  • 3 replies
  • 622 views
  • 0 likes
  • 4 in conversation