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 (April 1997, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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