Split dta code into separate file