Hi guys,
I am working a bunch of historical csv files with name like: YYYYMMDD_123_Data.csv The middle part "123" is always a 3 digit random number. I want to build up a loop in stata to import these csv files one by one and do some analysis.
As we see, the middle part of each csv file is different, is there any wildcard I can use to make Stata recognize each file in the loop? I tried YYYYMMDD_***_Data.csv and it doesn't work.
If you have any good idea, please feel free to share!
Thank you for your time!
I am working a bunch of historical csv files with name like: YYYYMMDD_123_Data.csv The middle part "123" is always a 3 digit random number. I want to build up a loop in stata to import these csv files one by one and do some analysis.
As we see, the middle part of each csv file is different, is there any wildcard I can use to make Stata recognize each file in the loop? I tried YYYYMMDD_***_Data.csv and it doesn't work.
If you have any good idea, please feel free to share!
Thank you for your time!
Comment