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: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1472 views
  • 0 likes
  • 2 in conversation