Date: Wed, 6 Aug 2003 16:19:09 -0400
Reply-To: Ian Whitlock <WHITLOI1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ian Whitlock <WHITLOI1@WESTAT.COM>
Subject: Macro/LOG interaction curiosity
Content-Type: text/plain
Is anyone else uneasy about this log? The code executes as intended, but I
am bothered by the splitting of the token SET on the log. I think that SET
should appear on one line, since I would like the log to be a faithful
report of processing. I do not care whether the macro call is on the same
line as written or separate line.
112 %macro splitline ;
113 %put ;
114 %mend splitline ;
115
116 data w ;
117 x = 1 ;
118 run ;
NOTE: The data set WORK.W has 1 observations and 1 variables.
NOTE: DATA statement used:
real time 0.02 seconds
cpu time 0.01 seconds
119
120 data _null_ ;
121 s
121! et %splitline ;
122 put _all_ ;
123 run ;
x=1 _ERROR_=0 _N_=1
NOTE: There were 1 observations read from the data set WORK.W.
NOTE: DATA statement used:
real time 0.01 seconds
cpu time 0.01 seconds
The problem appears to be caused by the location of the %PUT in the macro.
When it occurs before any generated code the preceding token is messed up on
the log.
IanWhitlock@westat.com