I'm importing files through a loop:
forvalues y=2010/2022 {
use "file`y'V1.dta"
[making changes]
save “file`y'.dta”
}
Problem is that some of the filenames have "V2" or "V3" instead of "V1".
How can I "ignore" this part? In some programming languages, you just write “*” to indicate that anything can be in that spot in the string.
I cannot change the filenames in their original directory since they are on a shared server and they are too big to just copy.