I'm working on two loops, one for downloadig data from a website from stata and the other one for transforming some files of the latter data into .dta files. The issue is that I ran the first loop and everything went fine. It is imporant to notice that before the first loop there's a [#delimit] ](I ran it with that) and a [#delimit cr] at the end of the second loop; and then when I ran the second loop, that error from the title pops up.

I have doubts on whether I should have ran the second loop with or without #delimit cr or it is about something else.

Thanks in advanced for your response.