Date: Tue, 3 Jul 2007 20:08:54 +0000
Reply-To: iw1junk@COMCAST.NET
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ian Whitlock <iw1junk@COMCAST.NET>
Subject: Re: Display "PUT"on the same line
Summary: Macro variables save information
#iw-value=1
%Macro you ( );
%local i line ;
%do i = 1 %to 5;
%let line = &line i=>>>&i.<<< ;
%end;
%put &line ;
%Mend;
%you()
Ian Whitlock
===============
Date: Tue, 3 Jul 2007 15:03:42 -0400
Reply-To: "Wang,Jue" <JWANG@TRAVELERS.COM>
Sender: "SAS(r) Discussion"
From: "Wang,Jue" <JWANG@TRAVELERS.COM>
Subject: Display "PUT"on the same line
Content-Type: text/plain; charset=us-ascii
Hi,
I am running this Macro
OPTIONS OVP;
%Macro me;
%do i = 1 %to 5;
%put 'i= ' "&i.";
%end;
%Mend;
%me;
In the log, I have these,
'i= ' "1"
'i= ' "2"
'i= ' "3"
'i= ' "4"
'i= ' "5"
I am trying to controll the output of LOG that the new line
%put 'i= ' "&i."
Will erase the previous line, such that instead of five lines of PUT in the
log, I'd have only one line remaining
'i= ' "5"
Can you show me a way to do that?
Thanks
<snip>