Hmmm,

After further testing, I'm given over to thinking that perhaps you can't have CASE statements occurring within SQL statements inside PL/SQL blocks.

Comments?

- Tony