Thanks for your response. It worked perfectly. Unfortunately, I am querying some very large tables and performance is a huge issue. Since I only want to read the table once, the following works more efficiently:
with TESTB (MO, NUM) as
(select 1, 8
from sysibm.sysdummy1 union all
select 2...