BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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
Peter_C
Rhodochrosite | Level 12
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
Cynthia_sas
SAS Super FREQ
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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2276 views
  • 0 likes
  • 4 in conversation