I have a JCL from which I pass the date in the format DD.MM.YYYY to cobol. now i accept that in cobol and pass it to the LAST_DAY function whicle searching the last date of the month from SYSTDAT/SYSDUMMY1 table.
Query i wrote is like
It throws me error in bind. Says the token WS-DATE is invalid.