Date: Wed, 22 Jun 2011 09:58:44 -0400
Reply-To: bbser 2009 <bbser2009@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: bbser 2009 <bbser2009@GMAIL.COM>
Subject: Open code statement recursion detected, macro code
Content-Type: text/plain; charset="US-ASCII"
Hi there
As indicated below:
1-3: Just normal macro code
4-5: Since the book I am reading says the first argument of %substr() can be
a character string, so I tested this with "www" but ended up with that
error.
6-8: I switched back to the old code in the first place, still getting the
same error information.
Could you explain what's going on here? Thank you very much!
Max
(Maaxx)
================
1 %let xx=www;
2 %let yy=%substr(&xx,2);
3 %put &yy;
ww
4 %let yy=%substr("www",2);
5 %put &yy;
ERROR: Open code statement recursion detected.
ERROR: Open code statement recursion detected.
6 %let xx=www;
7 %let yy=%substr(&xx,2);
ERROR: Open code statement recursion detected.
8 %put &yy;
ERROR: Open code statement recursion detected.
|