BookmarkSubscribeRSS Feed
Bill
Quartz | Level 8
Using the following "code":

filename Cypress pipe 'lp -drdmcqre';
ods printer file=Cypress
startpage=no;

proc tabulate ...
run;
proc tabulate ...
run;

ods printer startpage=now;
proc tabulate ...
run;

ods printer startpage = no;

proc tabulate ...;
run;

ods printer close;

There's plenty of space for the last 2 tabulates to fit on one page but it seems that the last ods printer startpage=no is not being honoured. Suggestions welcome.

Thanks,
Bill
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
When I run the code below in SAS 9.1.3 on Windows to create an ODS PDF file, I get (the expected) 2 pages of output with 2 Tabulates on each page. I wonder whether the PIPE command to a printer file has some other behavior with ODS and STARTPAGE. Possibly this Tech Support note is relevant to your situation:
http://support.sas.com/kb/11/535.html

You might wish to contact Tech Support directly for more help on this issue.

cynthia

[pre]
options orientation=portrait nodate number;

ods pdf file='c:\temp\test_sp.pdf'
startpage=no;

proc tabulate data=sashelp.shoes;
title '1) Region Min Mean Max';
class region;
var sales;
table region all,
sales * (min mean max);
run;

ods pdf text='2) Product Min Mean Max';

proc tabulate data=sashelp.shoes;
title '2) Product Min Mean Max';
class product;
var sales;
table product all,
sales * (min mean max);
run;

ods pdf startpage=now;

proc tabulate data=sashelp.shoes;
title '3) Region sum PCTSUM';
class region;
var sales;
table region all,
sales * (sum pctsum);
run;

ods pdf startpage=no;
ods pdf text= '4) Product sum PCTSUM';

proc tabulate data=sashelp.shoes;
title '4) Product sum PCTSUM';
class product;
var sales;
table product all,
sales * (sum pctsum);
run;
ods pdf close;
[/pre]

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
  • 1 reply
  • 1282 views
  • 0 likes
  • 2 in conversation