Hi everyone ,
I am trying to convert the current date - 2 months into format yyyymmdd and subtract 1900000 from it.
Oracle was easy for me
SELECT TO_CHAR(ADD_MONTHS(SYSDATE,-2),'YYYYMMDD') - 19000000 FROM DUAL
Can some one suggest me the same for AS400 .
Thanks in advance.