Hi pvs,
There are several ways to do this.
If you can live with an "almost", convert to days and compare to 180 or 182.
SELECT days (date1) - days (date2) ....
Otherwise, you'll probably want to call TIMESTAMPDIFF
SELECT TIMESTAMPDIFF (64,CHAR(TIMESTAMP('2001-09-29-11.25.42.483219') -
TIMESTAMP('2001-09-26-12.07.58.065497')))
FROM sysibm.sysdummy1;
Kent