Hello,
I have a problem with the substr command.
I want to extract the title from a file name that looks like this
I use the following code
and I get this
What am I missing?
Thanks,
Ylenia
I have a problem with the substr command.
I want to extract the title from a file name that looks like this
B09520003465-this is the title.csv
I use the following code
Code:
gen title= substr(filename, 14, length(filename) - 4)
and I get this
this is the title.csv
What am I missing?
Thanks,
Ylenia
Comment