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