Date: Tue, 31 Jul 2001 12:14:06 -0400
Reply-To: "Ivis, Frank" <frank.ivis@ICES.ON.CA>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Ivis, Frank" <frank.ivis@ICES.ON.CA>
Subject: Strange Macro Problem
Content-Type: text/plain; charset="iso-8859-1"
Can anyone explain what is going on with the code below? I just have a
simple data step with an input statement, but it does not work within a
macro! I have tested this with 8.0 Windows and 8.2 UNIX.
Thank you in advance for any help,
90 ! ptions mprint;
91 %macro junk;
92 data test;
93 input x y;
95 1 2
96 3 4
100 %mend junk;
MPRINT(JUNK): data test;
MPRINT(JUNK): input x y;
ERROR: The macro JUNK generated CARDS (data lines) for the DATA step, which
incorrect results. The DATA step and the macro will stop executing.
NOTE: The data set WORK.TEST has 0 observations and 2 variables.
NOTE: DATA statement used:
real time 0.04 seconds
ERROR: The macro JUNK will stop executing.
This email may contain confidential and/or privileged information for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you have received this email in error, please
contact the sender and delete all copies. Opinions, conclusions or other
information expressed or contained in this email are not given or endorsed
by the sender unless otherwise affirmed independently by the sender.