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 (March 2010, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 31 Mar 2010 11:09:49 -0400
Reply-To:     Chang Chung <chang_y_chung@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Chang Chung <chang_y_chung@HOTMAIL.COM>
Subject:      Re: Initializing macro variables in macro functions

Correcting two lines in (3):

> %*-- (3) --*; > %*-- requires &_local and &_let exist in the calling scope --*; > %macro init3(var=, value=, local=_local, let=_let);

WRONG > %let _local = &var; CORRECT> %let &local = &var;

WRONG > %let _let = %nrquote(%nrstr(%let ) &var = &value %str(;)); CORRECT> %let &let = %nrquote(%nrstr(%let ) &var = &value %str(;));


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