Maybe reference https://www.stata.com/support/faqs/programming/passing-arguments-to-do-files/.
Maybe reference https://www.stata.com/support/faqs/programming/passing-arguments-to-do-files/.