Sorry if this has been asked before
I have dataset containing var1 and var2.
I want to generate a new variable(var3), such that it matches the column before a specific column (var2, in the following case),where var3=var1
var1 var2 var3
123 AB 123
124 BB 124
Thanks in advance