Your extremely brief problem description leaves me wondering if you want to add the prefix to the variable NAMES, or a prefix to the variable VALUES. You don't tell us. Which is it?
Also, if you are talking about variable NAMES, this could be a symptom of poor data layout or poor data arrangements, and it might be that re-arranging your data will eliminate the need to change variable names. Specifically, people create wide data sets with lots of somewhat repetitive variable names, except for a prefix or suffix; while a long data set eliminates the need for lots of variable names and eliminates the need for bulk renaming.
Which brings us to the main point I want to make. We need you to help us, which in turn helps you. We need much more detailed problem statement, and we need to know WHY you are doing this; once we know this we can come up with (possibly) a better approach that is easier to program, and get you to your final destination a lot faster than renaming would get you there. Please also take a few minutes and read up on the XY Problem as I think this is important and relevant in this case, and really in all cases; we need to know what you are doing and WHY you are doing it in all future posts as well.
... View more