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

I'm trying to publish 2 small outputs from PROC TABULATE into a 1 page PDF.

However I still have 2 separate pages, despite my using CONDENSE.

What could be the reason?

 

ODS PDF  style=journal file="\\S01fs200\group01\GP14105\&YYYY\G en E\pdf\TEST.PDF";
options nobyline nodate;

title "OVERVIEW";
proc tabulate data=totaal format = commax12.2 MISSING ;
   class pos type ;
   classlev pos type;
   var  production score base perc comm;
   table pos='' * type ='',
		 production ='LEVEL'  * sum ='' 
		 score ='SCORE'  * sum ='' 
		 base ='BASE'  * sum ='' 
		 perc='PERC' * sum =''  
		 comm ='COMMISSION' * sum=''/condense misstext=' ';
run;

title "INVEST: REACHED LEVELS BY AGENT";
proc tabulate data=overzicht (where = (pos = 12635)) format = commax12.2 MISSING;
   class pos ;
   var  ADVIESbedrag EWATbedrag EWATmax VERKOOPbedrag NNMdrempel INVscore TOTscore INVperc;
   table ADVIESbedrag ='ADVICE '  * sum ='' 
   		 EWATbedrag ='EWAT '  * sum ='' 
		 EWATmax  ='EWAT 10% '  * sum ='' 
		 VERKOOPbedrag ='SALES '  * sum ='' 
		 NNMdrempel ='LEVEL'  * sum =''  
		 INVscore='INVEST SCORE ' * sum ='' 
		 TOTscore='TOTAL SCORE ' * sum ='' 
 		 INVperc='PERC ' * sum ='' /condense;
run;

ODS PDF  close;
1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

By default ODS PDF generates a page for each procedure. Use the option STARTPAGE=NO on the ODS PDF statement to send all output to the same page.

 

You can interleave ODS PDF statements with this option to change behavior between procedures.

View solution in original post

2 REPLIES 2
ballardw
Super User

By default ODS PDF generates a page for each procedure. Use the option STARTPAGE=NO on the ODS PDF statement to send all output to the same page.

 

You can interleave ODS PDF statements with this option to change behavior between procedures.

WimW
Calcite | Level 5
Works perfect, Thank You ballardw!

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