Date: Wed, 2 Mar 2011 14:10:13 -0800
Reply-To: Mark Miller <mdhmiller@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Mark Miller <mdhmiller@GMAIL.COM>
Subject: Re: SAS -- PUT and File Commands
In-Reply-To: <201103022150.p22KAj3Q012709@waikiki.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Use the put stmt for each file like
File fref; Put "TEST";
File lref; Put "TEST"
... Mark Miller
On 3/2/2011 1:50 PM, Brian Trautman wrote:
> I'm trying to write my SAS job so as to output to two files at once. For
> instance --
>
> filename fref ftp "'MF.JCL(TEST)'"
> host="server"
> user=&user
> pass=&pass
> debug;
>
> filename lref "/home/local/test.txt" ;
>
> Data _Null_;
> Set Rec_Length;
> file fref;
> file lref;
> Put "TEST";
> run;
>
> However, when I try this, it only writes to one of the above files. Is
> there any way to have SAS send the same out put to both places, short of
> running the program twice?
>
> Thank you!
|