Well, that does it for me, but I want put the results back into the data step.
GOAL:
Var A is 613 unique observations.
Var B is a the rank of the Var A
Var C = 490th highest value of Var A
Var D = If Var B<=410th highest value of Var A Then (C-A) Else 0;
Var A is dependent on previously unmentioned variables, so I want the rankings to update as the other underlying variables change. Accordingly, I want Var D to change instantanesouly when program is run.