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 (November 2011, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 17 Nov 2011 13:42:21 -0800
Reply-To:     "Choate, Paul@DDS" <Paul.Choate@DDS.CA.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Choate, Paul@DDS" <Paul.Choate@DDS.CA.GOV>
Subject:      Re: warning message for %left
Comments: cc: Christine Peloquin <christinepeloquin1@GMAIL.COM>
In-Reply-To:  <201111171846.pAHBl3dG028938@willow.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"

Or you can drop this into your code above the call:

%macro left(text); %****************************************************************; %* MACRO: LEFT *; %* USAGE: 1) %left(argument) *; %* *; %* DESCRIPTION: *; %* This macro returns the argument passed to it without any *; %* leading blanks in an unquoted form. The syntax for its use *; %* is similar to that of native macro functions. *; %* *; %* Eg. %let macvar=%left(&argtext) *; %* *; %* NOTES: *; %* The %VERIFY macro is used to determine the first non-blank *; %* character position. *; %****************************************************************; %local i; %if %length(&text)=0 %then %let text=%str( ); %let i=%verify(&text,%str( )); %if &i %then %substr(&text,&i); %mend;

Paul Choate DDS Data Extraction (916) 654-2160

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Christine Peloquin Sent: Thursday, November 17, 2011 10:46 AM To: SAS-L@LISTSERV.UGA.EDU Subject: warning message for %left

hello.

i just tried to run some old code that used to run cleanly. however, now, i get the following warning:

WARNING: Apparent invocation of macro LEFT not resolved.

this problem causes bigger problems further on.

any thoughts?

many thanks. christine


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