LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (February 1997, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Steven Dolan <steven.dolan@BEA.DOC.GOV>
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


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