Hello,

I would like to rename a variable (suppose it's name is VAR) with the content that is in a specific observation (let's say A[3] has the name of a city).
So, I want he name of VAR to be the name of the city in A[3].
My only idea was the following command:
rename (VAR) (A[3])

I know that to replace the content of VAR with the content of A[3] I can use
replace VAR = A[3]

But I want the name of VAR equal to the content of A[3].

Can someone help me?