https://www.projectguru.in/creating-do-file/
How to create a do-file in STATA?