You can use the approach described by @candby where you would need to do a data step for each data partition being passed through (e.g. Train, Validate, Test) but those changes would not be reflected in the resulting score code. It might be easier to just add a line to the Score code section of a SAS Code node such as the following:
MyNewVar = _NODE_;
The new variable MYNEWVAR will contain the value of _NODE_ in every resulting data set that is passed through the modeling node and/or scored by score code from a subsequent Score node. Admittedly, you are not renaming the variable but still can accomplish the desired outcome.
Hope this helps!
Doug
... View more