LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 22 Jul 2004 15:10:25 -0700
Reply-To:     "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Subject:      Re: how to stop proc print newpage?
Comments: To: Rusty Shackleford <rs@OVERLOOK.HOMELINUX.NET>

Rusty,

One approach would use ODS or printto to capture the output first:

<ODS Version> ods listing file='test.txt';

title; proc print data=sashelp.zipcode; where city =: 'SAC'; var city zip;

proc print data=sashelp.zipcode; where city =: 'SAD'; var city zip; run;

ods listing close; ods listing ;

data _null_; infile 'test.txt'; file print; Input; put _infile_; run; </ODS Version>

<Printto Version> proc printto print='temp.txt';

title; proc print data=sashelp.zipcode; where city =: 'SAC'; var city zip;

proc print data=sashelp.zipcode; where city =: 'SAD'; var city zip; run;

proc printto print=print;

data _null_; infile 'temp.txt'; file print; Input; put _infile_; run; </Printto Version>

Paul Choate DDS Data Extraction (916) 654-2160

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Rusty Shackleford Sent: Thursday, July 22, 2004 2:02 PM To: SAS-L@LISTSERV.UGA.EDU Subject: how to stop proc print newpage?

Hi, I do a lot of stuf like:

proc summary data=dd1; output out=sumdd sum=; proc print data=sumdd; run;

proc summary data=dd2; output out=sumdd sum=; proc print data=sumdd; run;

For a bunch of datasets.

Each proc print starts at the top of a new page in my .lst file. I'd rather that SAS just keep sending output to a page until the page gets full. How to do this?

Thanks!

-- Give and take free stuff: http://freecycle.org


Back to: Top of message | Previous page | Main SAS-L page