loops - How to touch (create a blank file) in Stata? -



loops - How to touch (create a blank file) in Stata? -

i'm aware of bundle touch, this. after installing , using package, stata 12 se (mac 10.9.5) says:

the touch command has been deprecated.

is there alternative? need initialize blank result file, can append regression result in loop without caring whether i'm in first iteration or not.

new answer

use 1 of next in file create blank xls file "newfile.xls":

shell echo /dev/null > newfile.xls

which overwrite existing files of same name. create new blank file of name:

shell touch newfile.xls

would work. if file of same name exists, touch alter modification , access times.

old answer

the next save empty stata info file "newdata.dta". substitute own name.

save newdata, emptyok

loops for-loop stata

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -