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 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 19 Jul 2006 15:26:17 -0600
Reply-To:     Alan Churchill <SASL001@SAVIAN.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Alan Churchill <SASL001@SAVIAN.NET>
Subject:      Re: Saving and reading in SAS output
Comments: To: "Terjeson, Mark (IM&R)" <Mterjeson@RUSSELL.COM>
In-Reply-To:  <>
Content-Type: text/plain; charset="US-ASCII"


You left out one thing at the end:

PARSE!!!!...A LOT !!!



Alan Churchill Savian "Bridging SAS and Microsoft Technologies"

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Terjeson, Mark (IM&R) Sent: Wednesday, July 19, 2006 3:18 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Saving and reading in SAS output

Hi Howard,

Here is one way:

* redirect output window(print) to disk file ; proc printto print='c:\temp\myoutput.txt' new; run;

* output something to output window, ; * is currently repointed to disk file ; proc print data=sashelp.class; run;

* restore default destinations ; proc printto; run;

* read varying length file back in ; data result(keep=theline); length theline $200; infile 'c:\temp\myoutput.txt' length=lenvar; input @1 theline $varying. lenvar; run;

Hope this is helpful.

Mark Terjeson Senior Programmer Analyst, IM&R Russell Investment Group

Russell Global Leaders in Multi-Manager Investing

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Howard Alper Sent: Wednesday, July 19, 2006 1:52 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Saving and reading in SAS output


I want to save SAS output (from the output window) as a file, and then read the output file back into SAS (really, send data to someone else, who could read data into SAS.) When one saves SAS output, do you save it to a list file, a DAT file, or other option? Then, given the list or other file, how can you read it into SAS? Fyi, if I just double-click on a list file, the SAS Preview window is activated, but I can't figure out how to open the Preview window otherwise.

Thanks in advance,

Howard Alper

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