Whoa! I've been using (and loving) DOLIST syntax for years in DATA step DO loops, totally unaware of the power and flexibility available. This VERY useful post proves once again that you CAN teach an old dog (or at least an old SAS programmer) new tricks :-) Thanks, Rick!