BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ShaneRosanbalm
Obsidian | Level 7

I am using ODS PDF to capture SGPANEL output. There are too many rows to fit on a single page (15), so I am using ROWS=5 to split the output across 3 pages.

 

 

ods pdf file="&path/changes.pdf";

proc sgpanel data=sc00;
   panelby function monthyear / columns=3 rows=5 novarname;
   series y=ratiofirst x=snapshotdt;
   series y=ratioprev x=snapshotdt;
   rowaxis display=(nolabel) refticks;
   colaxis display=(nolabel) refticks;
run;

ods pdf close;

 

The first 2 pages of output are fine, but the 3rd page contains only a title. 

title-only.png

Then there is a 4th page that has a double-title (one in the image, one above the image).title-double.png

 

 

 

This is very mysterious! Any help is greatly appreciated. Complete code and output are attached. I am using 9.4m4.

1 ACCEPTED SOLUTION

Accepted Solutions
ShaneRosanbalm
Obsidian | Level 7

@RW9, thanks for the reply.

 

>> You need to show the rest of the code, titles and such like.

Complete code was included in the attached ZIP file. I thought it would clutter things if I included the full code in the body. I'll just post full code in the body next time.  

 

I tried NOGTITLE but got the same thing as before. 

 

SOLUTION:

Reducing the HEIGHT from 10.5 to 10.0 seemed to work (with or without NOGTITLE). 

 

View solution in original post

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

You need to show the rest of the code, titles and such like.  I would guess that either you have a title statement and an odstext, or a title and a by line or something along those lines.  You can tun off byline with:

options nobyline;

Also, maybe check where titles are being stored,:
http://support.sas.com/kb/47/306.html

So maybe:

ods pdf file=".." nogtitle;

Just guessing from what you posted here.

ShaneRosanbalm
Obsidian | Level 7

@RW9, thanks for the reply.

 

>> You need to show the rest of the code, titles and such like.

Complete code was included in the attached ZIP file. I thought it would clutter things if I included the full code in the body. I'll just post full code in the body next time.  

 

I tried NOGTITLE but got the same thing as before. 

 

SOLUTION:

Reducing the HEIGHT from 10.5 to 10.0 seemed to work (with or without NOGTITLE). 

 

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 2 replies
  • 1404 views
  • 0 likes
  • 2 in conversation