Hi. I am trying to do the following with my string variable:
1. remove the "-" and everything before it in my string variable. So "HEI-GMRV" will be "GMRV"
2. remove all lead and lag spaces in what is left after #1. So, "HEI - Kadapa" should be only "Kadapa"
I know how to replace individual parts of the string, but not how to "remove all parts before "-"". Any help in doing this would be very much appreciated.
1. remove the "-" and everything before it in my string variable. So "HEI-GMRV" will be "GMRV"
2. remove all lead and lag spaces in what is left after #1. So, "HEI - Kadapa" should be only "Kadapa"
I know how to replace individual parts of the string, but not how to "remove all parts before "-"". Any help in doing this would be very much appreciated.
Code:
input str13 doc_location "HEI-GMRV" "HEI-GPR ICARE" "HEI-KVC" "HEI-KAR" "HEI-KAR" "HERF-KAR" "HEI-KAR" "HEI-GMRV" "HEI - Kadapa"
Comment