I am using a query for date calculation in my COBOL Program. The query is like this:
Code: Select all
SELECT * FROM TABLENAME
WHERE AKSTAMP >= CURRENT DATE - 3 YEARS;
Could any one suggest how to correct the query, as I get SQLCODE -401 with above query.
Thanks in advance.