Date: Mon, 12 Apr 2004 16:59:28 -0400
Reply-To: "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Subject: Re: Macro Question?
Content-Type: text/plain; charset="us-ascii"
> From: Ross, Michael D [mailto:michael.ross@ASTRAZENECA.COM]
> This piece of data gets fed into a Macro variable, but
> because of the extra parenthesis - it causes sas to blow. Is
> there a way to read whatever is in the dataset variable as
> pure text and bypass any tokens that cause this problem?
>
> datalines;
> (HELLO) THERE)
you can clean up your var w/this:
DataLines = translate(DataLines
,' ' %*to space;
,'()' %*from parens;
);
Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov
--> cheerful provider of UNTESTED SAS code from the Clue?Gee!Wrx <--
|