Page 1 of 1

error: too few quotes

Posted: Wed May 18, 2011 4:54 pm
by laura
Hi,
I updated runlwin today (using adoupdate runmlwin, update), and now none of my models will run! Do files that were running fine this morning are now stuck and give the error message "too few quotes". Has something changed about the syntax?
Thanks
Laura

Re: error: too few quotes

Posted: Thu May 19, 2011 8:55 am
by ChrisCharlton
The syntax should still match that in the help file, however it is possible that one of the undocumented options may have changed. Alternatively a bug may have crept in that wasn't picked up in testing. Would it be possible for you to provide an example of the syntax that fails?

Re: error: too few quotes

Posted: Thu May 19, 2011 9:08 am
by laura
Hi Chris,

Here's the syntax:

global MLwiN_path C:\Program Files\MLwiN v2.22\mlwin.exe
foreach var of varlist fpm2 {
runmlwin bmi cons `var', level2 (id: cons, reset(none)) level1 (occ: cons) nopause maxiterations(100)
}

Have tried running old do files, which definitely worked before I updated, and they are all giving the same error message.

Thanks,
Laura

Re: error: too few quotes

Posted: Thu May 19, 2011 9:43 am
by ChrisCharlton
Thanks for this. It appears that a bug has been introduced when parsing the reset option, which is what was causing your error. I have fixed this in the development version so it should be fixed next time we do an update. In the meantime you can either run the models without the reset option, or if you are happy editing the runmlwin.ado file you can fix the problem in your version by changing the line:

if "`all'" == "" & "`variances' == "" & `none' == "" {

to

if "`all'" == "" & "`variances'" == "" & "`none'" == "" {

Re: error: too few quotes

Posted: Thu May 19, 2011 12:01 pm
by laura
Thanks Chris, have edited the ado file and it's now running fine