Date: Tue, 11 Feb 1997 09:06:52 -0500
Reply-To: martin@MAIL.DUKE.EDU
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Kevin Martin <martin@MAIL.DUKE.EDU>
Subject: Re: Appending to an external file
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Use PROC APPEND to create one new data set that will contain the
necessary ten year segments in your study. Then output this new
data set to your ascii file via FILE and PUT statements. If the
process is to be repeated across different ten year segments, I
would recommend writing a macro with the APPEND procedure
and subsequent DATA _NULL_ inside it. APPEND is documented in the
Procedures guide.
Hope this helps.
Kevin
On Tue, 11 Feb 1997 00:03:40 GMT Steven Dolan
<steven.dolan@BEA.DOC.GOV> wrote:
> I am just starting out at this, so I beg you excuse me if this is a basic
> question, but I have read TFM, and find no help there.
>
> I have several SAS datasets, each of which contains 30 years of data that I
> would like to output to a single ASCII file, in ten year segments. I had
> thought to do it using multiple data steps, each outputting to the same file,
> but the file is renewed each time and I find no "append" option. Am I missing
> it? or is there another way?
>
> TIA,
> Steve Dolan
----------------------
Kevin Martin
martin@mail.duke.edu
The Fuqua School of Business
Duke University
|