LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2001, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 o MPRINT(): 90 ! ptions mprint; 91 %macro junk; 92 data test; 93 input x y; 94 cards; 95 1 2 96 3 4 97 ; 98 run; 99 100 %mend junk; 101 %junk MPRINT(JUNK): data test; MPRINT(JUNK): input x y; MPRINT(JUNK): cards;

ERROR: The macro JUNK generated CARDS (data lines) for the DATA step, which could cause 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.

Back to: Top of message | Previous page | Main SAS-L page