Macro: Gtools

restore if "`verbose'" != "" di as text "Results saved to: `save'"

* Save/Append results if "`save'" != "" preserve quietly tempfile results clear set obs 1 gen var = "`oldvar'" gen newvar = "`newvar'" gen N = r(N) gen mean = r(mean) gen sd = r(sd) gen min = r(min) gen max = r(max) gen transforms = `transform_count' gen date = date(c(current_date), "DMY") format date %td save "`save'", replace gtools macro

use dataset1, clear local vars1 : colnames restore if "`verbose'"

You need to process only .dta files whose names contain "raw" but not "backup" from a directory listing. To help you better, could you tell me:

💡 : If you are a data scientist , you likely need the R defmacro documentation. If you are a gamer , you are likely looking for the automation scripts for client management. To help you better, could you tell me: Are you working in R or Stata for data analysis? Are you trying to automate a gaming task?

Assume:

local i = `i' + 1