With everyone’s help I have figured out the problem. I had a missing single quote which I did not catch when I ran RStyle because in my code I am using RMail to send emails and in the Senders address I am using a double quote which confused me when RStype complained about unbalance quotes. Once I put the single quote in all works well.
Thanks all. Ajay *From:* [email protected] [mailto:[email protected]] *On Behalf Of *Karen Tellef *Sent:* Tuesday, March 26, 2013 1:38 PM *To:* RBASE-L Mailing List *Subject:* [RBASE-L] - Re: ERROR- Too many commands in WHILE loop/WHILEbuffer full ( 218) Razzak: Could you answer one question someone had? They asked if you have a while loop with a "run" command in it, and that run program also has a while loop... How does that all add up with the 64K buffer size? Thanks! Karen -----Original Message----- From: A. Razzak Memon <[email protected]> To: RBASE-L Mailing List <[email protected]> Sent: Tue, Mar 26, 2013 12:33 pm Subject: [RBASE-L] - Re: -ERROR- Too many commands in WHILE loop/WHILEbuffer full ( 218) At 12:39 PM 3/26/2013, Ajay Sanghvi wrote: >I need help understanding the following error message. I have never >encountered this error before. > >-ERROR- Too many commands in WHILE loop/WHILE buffer full ( 218) > >Is there a setting that will allow me to increase the buffer size? Ajay, Here's the reason and the explanation of -ERROR- 218 ... All commands from the start of a WHILE loop to the corresponding ENDWHILE command are stored in a scratch buffer. This buffer is limited to 64K of memory. Too many commands in the WHILE loop prevent the command file from finishing; approaching this limit can prevent other kinds of processing such as checking data against data entry rules or using expressions. Take a close look at all your RUN statements and make sure the last file uses the RETURN command to return back to the calling command. Depending on your programming logic, and all internal routines, you may consider using "QUIT TO commandfile.rmd" instead of RUN commandfile.rmd. Very Best R:egards, Razzak. www.rbase.com www.facebook.com/rbase

