Hi Leonid.

Nicely done! I especially like that you created a macro variable and then used it in a RETAIN statement to define variable ordering.