I have two SPSS datasets (a & b) that have identical variable names (eg. date, time, etc.). I want to combine them without confusion. Therefore, I want to change the variable names to reflect the dataset it belongs to (a vs. b). How can I add "_a" to all the variable names in dataset a (eg. date_a). I would go through it manually except there are over a thousand variables in each dataset. I would prefer to keep everything in SPSS if possible. Help!
I tried the function below, but SPSS did not seem to like that and provided a lot of error messages indicating it did not recognize my variable names (I double-checked for typos and found none).
RENAME VARIABLES (expName=expName_a) (OS=OS_a) (framerate=frameRate_a) (trial.started.1=trial.started.1_a)