Prev: PROC EXPAND
Next: How to loop the argument of a macro
From: Amar Mundankar on 29 Mar 2010 00:40 Hi all, The code is : options sgen; %let one = two; %let two = three; %let three = four; %let four = last; %put &&&&&last; Output is : 357 %put &&&&&last; SYMBOLGEN: && resolves to &. SYMBOLGEN: && resolves to &. SYMBOLGEN: && resolves to &. SYMBOLGEN: && resolves to &. WARNING: Apparent symbolic reference LAST not resolved. &last Now i want, if SAS doesn't find the Macro variable "last" then instead of WARNING:, it should display ERROR: message and it should not print the output as "&last" . Is there any way that sas will not output "&last' in the log ?? Please help. Thanks in Advance. Thanks and Regards, Amar Mundankar.
From: Amar Mundankar on 1 Apr 2010 01:10 On Mar 29, 9:40 am, Amar Mundankar <amarmundan...(a)gmail.com> wrote: > Hi all, > The code is : > > options sgen; > %let one = two; > %let two = three; > %let three = four; > %let four = last; > %put &&&&&last; > > Output is : > > 357 %put &&&&&last; > SYMBOLGEN: && resolves to &. > SYMBOLGEN: && resolves to &. > SYMBOLGEN: && resolves to &. > SYMBOLGEN: && resolves to &. > WARNING: Apparent symbolic reference LAST not resolved. > &last > > Now i want, if SAS doesn't find the Macro variable "last" then > instead of WARNING:, it should display ERROR: message and it should > not print the output as "&last" . > Is there any way that sas will not output "&last' in the log ?? > Please help. > Thanks in Advance. > > Thanks and Regards, > Amar Mundankar. Hi all, Does anybody have any idea about the above mentioned question? Is it possible in SAS or not??? Please help. Regards, Amar Mundankar.
|
Pages: 1 Prev: PROC EXPAND Next: How to loop the argument of a macro |