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
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