I have searched and found things close, but not quite what I need. Perhaps that's because I need it spelled out for me. I have the following variable, but I want to leave only the last 9 digits of each observation within that variable. How do I get rid of the "TX-extra numbers-"? I am assuming somewhere is substr, but I cannot get it right. Thank you!
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str19 stateschoolidpublicschool201819 "TX-108913-108913118" "TX-108902-108902006" "TX-043914-043914005" "†" "TX-246909-246909014" end
Comment