-
Login or Register
- Log in with
test.do local 0: subinstr local 0 ";" "," syntax using, test(str) disp `"`using'"' disp `"`test'"' . do test using auto; test(hello) // fine . doa test using auto; test(hello) // fails
gettoken dofile arguments: 0 // look for `"`dofile'"' // if not found, look for `"`dofile'.do"' // if not found, look for `"`dofile'*.do"' // if not found, error // if multiple files, error do `"`dofile'"' `arguments'
save "`r(dofile)'.dta", replace
do mydo.do
do mydo.do
=exp not allowed
=exp not allowed (did you mean to use ==?)
. webuse nhanes2f, clear . * This will cause an error . sum age
. . webuse nhanes2f, clear . . * This will cause an error * is not a valid command name r(199); end of do-file r(199);
Leave a comment: