Hi, I have about 60 variables that need to replace with values from one variable. This would be an example data set need to replace c,d,e,f,g with values from B. Thanks ! data have;
input A $ B C $ D E F G ;
datalines;
CA 1 1 1 20 7 10
CA 2 B 1 2 5 18
CA 3 B 9 3 5 18
CA 4 B 8 3 3 7
CA 6 R 2 4 2 6
NV 1 B 1 4 1 9
NV 2 B 1 4 1 10
NV 3 B 1 5 7 18
NV 4 B 1 5 4 8
NV 5 B 1 5 4 7
NV 6 B 1 5 6 8
NV 1 R 4 5 7 9
NV 2 R 6 5 8 10
;
run;
... View more