Date: Mon, 19 Dec 2011 17:45:37 +0530
Reply-To: Anindya Mozumdar <anindya.lugbang@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Anindya Mozumdar <anindya.lugbang@GMAIL.COM>
Subject: Re: how to solve this senario?
Content-Type: text/plain; charset=ISO-8859-1
> %let value= %superq(data level 1.2(a));
> ERROR: Invalid symbolic variable name DATA 1.2(A.
> %put &value;
> Could you please help me on this,
A very naive way of thinking about superq would be (even though it is
slightly more complex) is - "it takes a macro VARIABLE NAME as
argument and replaces it with its VALUE".
So, for example -
%let v1 = hello;
%let v2 = %superq(v1);
would print hello in the SAS log as %superq(v1) would just resolve to hello.
Going by the logic above, do you have a macro variable NAMED "data
level 1.2(a)" - note that such a variable name is illegal.