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 (September 2010, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sat, 4 Sep 2010 07:50:37 -0400
Reply-To:   Nat Wooding <nathani@VERIZON.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Nat Wooding <nathani@VERIZON.NET>
Subject:   Re: Output all columns from dataset to text file
In-Reply-To:   <4C822A7D.5000300@gmail.com>
Content-Type:   text/plain; charset="US-ASCII"

As Richard said, there are a number of ways to do this. The following uses a data step.

Nat Wooding

Data Have; input a b c d $2.; cards; 1 2 3 a 4 5 6 b ;

Data _NULL_ ; set have; Filename new 'c:\outfile.txt'; File new; put (_all_) (' ');* the field separator here is a space. You could specify other delimitors; run; filename new clear;

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of js8765 Sent: Saturday, September 04, 2010 7:16 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Output all columns from dataset to text file

Hi all,

Is there any way of outputting all columns from a dataset to a text file (i.e. the complete dataset) without having to specify the individual columns?

Thanks in advance for any help.

js


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