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 (July 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: cc: "Wang,Jue" <JWANG@TRAVELERS.COM>

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>


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