Hi,
I have an issue with using temporary saved files. I have saved r1r2 and r3 as temporary file followed by save command as the following:
tempfile r1r2
save "`r1r2'"
When I reuse the files inorder to merge, I get an error message: invalid file specification r(198).
use `r1r2'
merge CHILDID using `r3'
replace inr2=0 if _m==1
drop _m
sort childid
merge childid using `r3'
replace inr3=0 if _m==1
drop _m
I don't see from where the error message arrives.
I have an issue with using temporary saved files. I have saved r1r2 and r3 as temporary file followed by save command as the following:
tempfile r1r2
save "`r1r2'"
When I reuse the files inorder to merge, I get an error message: invalid file specification r(198).
use `r1r2'
merge CHILDID using `r3'
replace inr2=0 if _m==1
drop _m
sort childid
merge childid using `r3'
replace inr3=0 if _m==1
drop _m
I don't see from where the error message arrives.

Comment