I'm trying to automate the data importing step but don't know how to get the lagged month. If it's the current month, say, the file name is "data_202305.csv" then I can do:
Code:
local current_month : di %tdN daily("$S_DATE", "DMY")
import delimited "path\data_2023`current_month'.csv", clear
No comments:
Post a Comment