Code:
gen x = 1
label var x "this is x"
gen y = 2
label var y "this is x"  // <- how to automate this step?
Is there a way to use code instead of manually assigning the label of x to y? (asking since I ran a massive for loop with many variables to automate this step)