Date: Sun, 8 Jun 2008 09:47:57 -0500
Reply-To: "data _null_," <datanull@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "data _null_," <datanull@GMAIL.COM>
Subject: Re: How do I capture output from the %listm or %mlist macros?
In-Reply-To: <1083e3ed-f2de-418c-a853-0bbbec753b16@34g2000hsh.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
I was referring to %MLIST %DEACTIVATE etc.
On 6/8/08, RolandRB <rolandberry@hotmail.com> wrote:
> On Jun 8, 2:15 pm, datan...@GMAIL.COM ("data _null_,") wrote:
> > They are NOT macros they are statements. Did you read TS-289.
>
> I have linked to TS-289 but I note that messages in the log indicate
> that the SI regard them as macros.
>
> Try this:
> macro (bad) nnnnn %
>
> If the SI describe them as "Old-style macros" then I don't think it
> helps to clarify the situation if you describe them as anything other
> than "Old-style macros".
>
> > This seems to work to deactivate a couple of old style macro. I just
> > used the most basic code to read the proper line from the PRINTTO
> > output. If you were doing this in your hack thwart you would want
> > something more robust.
> >
> > macro roland berry1%
> > macro rashleigh berry2%
> >
> > filename ft29f001 temp;
> > proc printto log=ft29f001 new;
> > run;
> > %mlist;
> > proc printto;
> > run;
> > data _null_;
> > infile ft29f001;
> > input;
> > list;
> > run;
> > data _null_;
> > infile ft29f001 firstobs=7 obs=7;
> > input;
> > call execute(catx(' ','%DEACTIVATE ',_infile_,';'));
> > list;
> > run;
> >
> > run;
> > %mlist;
> >
> > On 6/8/08, RolandRB <rolandbe...@hotmail.com> wrote:
> >
> >
> >
> > > On Jun 8, 8:55 am, RolandRB <rolandbe...@hotmail.com> wrote:
> > > > How do I capture output from the %listm or %mlist macros? I've been
> > > > trying to do this but getting nowhere. The usual methods don't seem to
> > > > be working. You all have these macros if you have sas.
> >
> > > OK, I have done it now. I was getting some "Open code recursion"
> > > messages but I overcame it.- Hide quoted text -
> >
> > - Show quoted text -
>
|