Date: Mon, 19 Feb 2007 15:34:24 -0500
Reply-To: Sigurd Hermansen <HERMANS1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Sigurd Hermansen <HERMANS1@WESTAT.COM>
Subject: Re: Issue with SAS macro
Content-Type: text/plain; charset="us-ascii"
For one thing you are mixing two forms of Macro parameter specification.
The Macro definition follows the parameter list form. The Macro call
follows the 'named parameter' form. Further, the Macro call will need to
put SAS library references containing periods inside a %str()
It may take a while to specify this Macro correctly. Have you explored
From: firstname.lastname@example.org [mailto:email@example.com]
On Behalf Of Nuno Soares
Sent: Monday, February 19, 2007 2:07 PM
Subject: Issue with SAS macro
I'm having a problem with a macro that I've written. The macro goes
something like this:
The problem is the following:
- When I run the macro the first time, the log window only displays
black text (as if it was just text);
- If I then run the macro a second time the macro seems to be running
ok, but it keeps runing in a loop (I don't have any loop expression in
the code... This is strange).
I don't show the code in between %macro and %mend because I've changed
the code inside not to include the commands passed by the macro (ie, not
dependent of the infile, outfile, benchfile, etc inputs), and the
behaviour is still the same. When I run the code inside the macro
without the %macro %mend commands it runs without a problem.
Any idea about what's going on?