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 (June 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 20 Jun 2007 16:40:52 -0400
Reply-To:     "Wainwright, Andrea" <andrea.wainwright@CAPITALONE.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Wainwright, Andrea" <andrea.wainwright@CAPITALONE.COM>
Subject:      Re: Proc Printto
Comments: To: mesecca L katram <mesecca@YAHOO.COM>
In-Reply-To:  A<200706201942.l5KHMfLJ005578@mailgw.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"

Well, the code between the two proc printto's (two datasteps) doesn't produce any output, so there isn't anything to write to results.lst.

Then you switch to output.lst and generate output.

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of mesecca L katram Sent: Wednesday, June 20, 2007 3:42 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Proc Printto

I tried it with the program below but its printing only output.lst, there is nothing in results.lst.

FILENAME myprint "D:\results.lst"; PROC PRINTTO print=myprint new ; RUN; data abc; input loans month; datalines; 1000 1 1001 3 1004 4 1007 3 ; run; data xyz; input loan year; datalines; 2004 1 2005 3 2006 4 2007 3 2001 3 2004 4 2008 3 ; run; proc printto print="D:\output.lst" ; PROC SQL ; SELECT COUNT(loans) INTO :x FROM abc ; SELECT COUNT(loan) INTO :y FROM xyz; QUIT; proc printto;run;

proc print data=abc;run; proc print data=xyz;run;

proc printto;run;

The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.


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