I ran the following query using the CLI on DB2 V8 for Linux:
select * from employee
where edlevel =
(select count(*) from employee where lastname ='xxx')
I got no rows back and return code of +100
If I just run the subquery portion by itself, I get "0" back with return code of 0.