Hello, I have a data set with 3 numerical variables A, B and C and 1 character variable V with values "A", "B" or "C". I need to create a numerical variable R that will contain the value of the variable specified in V i.e. if V = "A", then R = value of A. Please see example below: A B C V R 1 2 3 "A" 1 1 2 3 "B" 2 4 5 6 "A" 4 4 5 6 "C" 6 I am using SAS 9.3 but for something so simple I guess version is not important. Thank you very much for your help. 🙂
... View more