I would simply include a query using the sysdummy1 table to get the date.
Select current date - 9 months
from sysibm.sysdummy1
Let DB2 or your sql deal with it....
This is os/390 DB2 systax but here is my try...
select Hs.Documentindex
FROM Header Hs
where Hs.Documentindex NOT IN
(select Hs.Documentindex
from Header h1
where H1.Imgptr NOT IN
(select Imgptr
from...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.