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
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;
>
|