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 (November 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 2 Nov 2006 13:06:08 -0500
Reply-To:   Jake Bee <johbee@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Jake Bee <johbee@GMAIL.COM>
Subject:   Re: read in sas file and write out with new extension
Comments:   To: Kevin Roland Viel <kviel@emory.edu>
In-Reply-To:   <Pine.GSO.4.58.0611021251390.6091@leukothea>
Content-Type:   text/plain; charset=ISO-8859-1; format=flowed

the extension should change for .sas to .txt (essentially a rename)

On 11/2/06, Kevin Roland Viel <kviel@emory.edu> wrote: > > On Thu, 2 Nov 2006, Jake Bee wrote: > > > I need a way to read in a sas file and write out with > > a new extension in DOS. Is there a way to do this in > > SAS? > > Jake, > > To clarify, by "sas file" do you a set dataset or a *.sas file? What do > you mean by read, the use of an INFILE statement? > > Are you simply trying to rename/copy the file? > > Why are you trying to do this? > > Consider: > > /* NOT TESTED */ > data _null_ ; > infile "C:\one.sas" length = len lrecl = 500 ; > file "C:\one.txt" ; > input line $varying500. len ; > put line ; > run ; > > x "copy C:\one.sas C:\one.txt" ; > > HTH, > > Kevin > > > Kevin Viel > PhD Candidate > Department of Epidemiology > Rollins School of Public Health > Emory University > Atlanta, GA 30322 >


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