Date: Sun, 8 Jun 2008 09:11:17 -0700
Reply-To: RolandRB <rolandberry@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: RolandRB <rolandberry@HOTMAIL.COM>
Organization: http://groups.google.com
Subject: Re: How do I capture output from the %listm or %mlist macros?
Content-Type: text/plain; charset=ISO-8859-1
On Jun 8, 4:47 pm, datan...@GMAIL.COM ("data _null_,") wrote:
> I was referring to %MLIST %DEACTIVATE etc.
>
> On 6/8/08, RolandRB <rolandbe...@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 -- Hide quoted text -
>
> - Show quoted text -
Prove to the rest of the world that you knew about such things before
I brought them up.
|