I have a dataset in which every variable name has the suffix "_1" (this was done to indicate the first interview timepoint). I want to remove this suffix from all variables, but there are hundreds of them, so I am looking for a way to do it without using the RENAME statement hundreds of times.
The closest to relevant info I found was from the link below, "A few SPSS loops for renaming variables dynamically." However, these examples show how to add a suffix or change a prefix, but not remove a suffix.
http://www.ats.ucla.edu/stat/spss/code/renaming_variables_dynamically.htm
I have the Python essentials package installed with SPSS, though I am not familiar with Python.