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

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -