Date: Mon, 7 Apr 1997 13:51:00 -0700
Reply-To: Lund Peter <Peter.Lund@OFM.WA.GOV>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Lund Peter <Peter.Lund@OFM.WA.GOV>
Subject: Re: macro problem
Content-Type: text/plain; charset="us-ascii"
Tim -
For this problem, just remove the comma between the two variable
names. Remember, the macro parameter list is delimited by commas so
the two variable names are treated as one parameter.
Try: %try(state county)
This will resolve to:
proc sort;
by state county;
run;
HTH-
Pete Lund
WA State Office of Financial Management
peter.lund@ofm.wa.gov
----------
From: Tim Pi[SMTP:fmrco!timpi@UUNET.UU.NET]
Sent: Monday, April 07, 1997 1:12 PM
To: Multiple recipients of list SAS-L
Subject: macro problem
Hi SAS users,
Does anyone know how I can pass the two variables to a
macro so that a file can be sorted by the order of these
two variables? I tried the following code but it didn't work.
%macro try(sortvar);
proc sort data = final;
by sortvar;
proc print;
%mend try;
%try(%str(state, county));
Thanks!
Tim