zOs/SQL/CATTPDEN

with p as
(
  select
    case when space > 0   then '>0' else strip(char(space)) end spc
  ,  case when spaceF > 0 then '>0' else strip(char(spaceF)) end spcF
  from sysibm.sysTablePart
)
select spc, spcF, count(*)
   from p
   group by spc, spcF
   with ur