The VVALUEX function allows fetching the value of a variable determined at run-time, by passing as argument another variable, for each observation. For example, the following statement in a datstep: NEW_FIELD = vvaluex(DYN_FIELD); Would produce the following result: DYN_FIELD A B C NEW_FIELD A 1 2 3 1 A 5 6 7 5 B 9 10 11 10 C 13 14 15 15 I would like to perform the inverse: set a value of a variable determined at run-time, ideally, a function such as this, callable from within a datastep: call SETVALUEX(DYN_FIELD, SOURCE_FIELD); DYN_FIELD A B C SOURCE_FIELD A 1 . . 1 A 2 . . 2 B . 3 . 3 C . . 4 4
... View more