BookmarkSubscribeRSS Feed
riya275
Obsidian | Level 7

I have created a pdf with ods procedure and my report has 7 columns. i want all seven columns on the same page. 

for one first page of the table  i am getting them on the same page  . however When the table continues on the next page there are only 6 columns and the seventh column has shifted to a separate page.  How to fix this? 

ods pdf file ='/folders/myfolders/sales.pdf' ;
options nodate;
/*Olympic Pipeline (LONDON) - by Probability As of 17th November 2012*/
proc report data = c1.a;
column probability____ Account_name Opportunity_Owner Last_Modified_Date 
Total_Media_Value Digital_Budget Deal_Comments;
define probability____/ order  descending 'Probability';
break after probability____/dol summarize style=[backgroundcolor=grgy ]  ;
define Account_name/  'Client';
define Opportunity_Owner /'Champ';
define Last_Modified_Date/ display 'Modified';
define Digital_Budget / SUM 'Digital Budgett' format= dollar30. ;
define Total_Media_Value / SUM 'Total Budget' format= dollar30.;
define Deal_Comments/ 'Comments';
rbreak after/ ol summarize style=[backgroundcolor= grrp color=aliceblue ];
title 'Olympic Pipeline (LONDON) - by Probability As of 17th November 2012'  ;
run;
ods pdf close;
7 REPLIES 7
riya275
Obsidian | Level 7

But how come only the first page of the table fits and the other  two pages  dont?

Astounding
PROC Star

It's conceivable that you don't really need 30 characters to print the budget values.  Try cutting back from:

 

format=dollar30.

 

to this instead:

 

format=dollar20.

riya275
Obsidian | Level 7
Its not working
Astounding
PROC Star

Sometimes, the report is just too wide to fit.  (See @WarrenKuhfeld's comment ! )

 

You could also experiment with the Comments field.  Take a look at the WRAP option and whether that might save some space by enabling you to use a narrower width.

PGStats
Opal | Level 21

You can restrict the width of certain columns with something like:

 

define Deal_Comments/ 'Comments' style(column)=[width=15%];
PG
Ksharp
Super User

options papersize=(100in 100in);

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 7 replies
  • 2713 views
  • 0 likes
  • 5 in conversation