| Date: | Thu, 26 Jul 2007 11:24:03 -0400 |
| Reply-To: | Douglas Martin <douglas.martin@CIRG.ORG> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Douglas Martin <douglas.martin@CIRG.ORG> |
| Subject: | Re: A simple MACRO question: |
|---|
The answer is as a previous respondent said - you need a period between
&datas and _08, i.e. &datas._08.
To elaborate - a single period following a macro variable name indicates
the end of that macro variable name and will not appear in the macro
expansion. While you don't need it in what you are doing here, for future
reference if you really do want an actual period following the expansion of
a macro variable, use two periods, e.g. &file..txt
On Thu, 26 Jul 2007 11:15:05 -0400, John Edward
<entry_mid_level_sas@YAHOO.COM> wrote:
>The error is as belowas tobby asked for:
>
... --------
> 202
>1 ! = &datas_15; By subjid; run; data &datas; set &datas_08
>&datas_15; By subjid; run;
>WARNING: Apparent symbolic reference DATAS_08 not resolved.
>
>ERROR 22-322: Expecting a name.
>
.
|