I´m converting spss files into .dta files through many loops and one of those is like the following (the other ones only change the name of the spss file)

cd "$directorio/`i'/`i'-Modulo238";
usespss 10_IVCENAGRO_REC05.sav;
save 238, replace;
erase 10_IVCENAGRO_REC05.sav;

and after runnings it, the error on the title appears:

file
C:\Users\AppData\Local\Temp\ST_04000001.tmp
not found
r(601);


I tried searching manually the file ST_04000001.tmp but it indeed does not exist.

I thank in advance your responses and any possible solutions.