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 (February 2010, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 2 Feb 2010 17:44:28 -0600
Reply-To:     Joe Matise <snoopy369@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Joe Matise <snoopy369@GMAIL.COM>
Subject:      Re: Exporting a SAS data set to Text file on SAS unix
Comments: To: Ranjhana <ranjhanas@gmail.com>
In-Reply-To:  <b16d5561-5b6f-436f-a80d-fc5579b95ccd@t1g2000vbq.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

You could try PROC EXPORT instead of the datastep... it should work to export a comma-delimited file. But Mike's suggestion will work well, and might be more flexible for you - and is not dissimilar to what PROC EXPORT actually physically does, I suspect.

-Joe

On Tue, Feb 2, 2010 at 3:48 PM, Ranjhana <ranjhanas@gmail.com> wrote:

> Hi All, > > I used the following code to export a SAS dataset to text file, but i > am unable to get the header. Can anybody tell me how to get the header > (Variable names) to the text file ? > > Filename out "/home/z19/test_export.txt"; > data _null_; > set ranj.layout_archive_prodcar; > file out; > put (_all_) ('09'x); > run; >


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