Date: Tue, 6 Jun 2006 18:33:58 +0000
Reply-To: toby dunn <tobydunn@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: toby dunn <tobydunn@HOTMAIL.COM>
Subject: Re: "MINI" MACRO QUESTION
In-Reply-To: <6.0.1.1.2.20060606134652.01ff6f78@newdonner.dartmouth.edu>
Content-Type: text/plain; format=flowed
Kevin ,
%let time = 1 ;
%let rate r= cd1 ;
data new ;
set one ;
if ( ( time = &time ) and ( rater = "&Rater" ) ) ;
put "data set restricted to the case where time is &time and rater is
&rater" ;
run ;
Toby Dunn
From: "Kevin F. Spratt" <Kevin.F.Spratt@DARTMOUTH.EDU>
Reply-To: "Kevin F. Spratt" <Kevin.F.Spratt@DARTMOUTH.EDU>
To: SAS-L@LISTSERV.UGA.EDU
Subject: "MINI" MACRO QUESTION
Date: Tue, 6 Jun 2006 14:30:01 -0400
Suppose I subset a data set as follows:
%let time=1;
%let rater=cd1;
data work.new;set work.one;
if time=&time;
if rater=&rater;
/*
now I want to output some of the variables and document what I have by
using these
macro variables;
*/
data _null_;set work.new;
put @5 'data set restricted to the case where time is' &time 'and rater
is' &rater;
My question: How do I structure this put statement so that the values of
the macro variables
are shown?
______________________________________________________________________
Kevin F. Spratt, Ph.D.
Department of Orthopaedic Surgery
Dartmouth Medical School
One Medical Center Drive
DHMC
Lebanon, NH USA 03756
(603) 653-6012 (voice)
(603) 653-6013 (fax)
(603) 252-5922 (cell)
Kevin.F,Spratt@Dartmouth.Edu (e-mail)
_______________________________________________________________________