Hi all,
I have a curious problem. I have a master .do file (Master.do) which calls a number of other .do files. When one of these is running, it gives the error "unexpected end of do-file" in the middle of the .do file. Oddly, if I simply call that child .do file directly (rather than getting Master.do to call it), there is no problem. The error appears during the running of this code:
The .do file is considerably longer than above, with code both above and below - this is just the relevant part. After "save `taxrates'", Stata gives the "unexpected end of do-file" error.
I am running version 16.1 MP if relevant. I have tried adding and subtracting blank lines after "save `taxrates'" but to no avail. Annoyingly the part of the code above the snippet above takes a considerable amount of time to run making testing different fixes difficult.
Grateful for any help.
I have a curious problem. I have a master .do file (Master.do) which calls a number of other .do files. When one of these is running, it gives the error "unexpected end of do-file" in the middle of the .do file. Oddly, if I simply call that child .do file directly (rather than getting Master.do to call it), there is no problem. The error appears during the running of this code:
Code:
save "${interimpath}//LFSInterim1", replace ****************************************************************************************************************************************************************** import excel using "${miscdatapath}//taxrates.xlsx", firstrow sheet("output") clear tempfile taxrates save `taxrates' u "${interimpath}//LFSInterim1", replace //Recode various vars replace ayfl19 = -1 if ayfl19 == 19
I am running version 16.1 MP if relevant. I have tried adding and subtracting blank lines after "save `taxrates'" but to no avail. Annoyingly the part of the code above the snippet above takes a considerable amount of time to run making testing different fixes difficult.
Grateful for any help.
Comment