From: Serge Rielau on
Squeezing in MERGE won't work in the same way.
It's the "missing piece".
Much to my dismay SELECT FROM MERGE is not support at present, and WITH
can't precede MERGE.
You can consider using a dynamic compound statement or simply wrapping
the MERGE into an SQL Table function in combination to what Miro proposed.
That should work very well in a non DPF environment.
Make sure to check the db2exfmt.

On the topic of allowing stacked updates those who heard me IBM panel at
IDUG Europe Thursday know that I would like to reduce complexity of SQL
rather than add more to it.
The WITH clause allows for a clean way to semantically serialize these
constructs. Allowing for stacking and joins between updates get very
quickly very unreadable.
We prefer leaving the pipelining to the optimizer.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ondemandbusiness/conf2006/