From: Amar Mundankar on
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
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.