From: SAS Swamy on
Hello,

Can someone pleast tell me what's wrong in the following code , I am
getting the Site details through a Macro variable &site , from which I am
assigning the Site name
*****************************************************;
%macro site_dtls;
%GLOBAL sitename;
%if &site = 'A' %then sname='Company A';
%else %if &site = 'B' %then sname=' Company B';
%else %if &site = 'C' %then sname=' Company C';
%else %if &site = 'D' %then sname=' Company D';
CALL SYMPUT("sitename", sname);
run;
%mend;
%site_dtls
%put &sitename;
*****************************************************;
I am getting the following error message :
CALL SYMPUT("sitename", sname);
----
180
ERROR 180-322: Statement is not valid or it is used out of proper order.

Thanks
- Swamy
 | 
Pages: 1
Prev: discriminant function scores
Next: SAS renewal