i have an example dataset here. enter image description here
i want to make a new column named approver by extracting the "to_user" values if the workflow status contains "approval". it should be corresponding to each unique request no. i give the example of what i expect for the new column. i am very new to sas, i did the functions research but still get stuck. thank you for helping!
You can use by-group processing to determine (compute) the last approver within the group, and then apply that to each row in the group.
Example:
Compute a value for a group and apply it to each row in the group using DOW loop processing.