>> The -805 is occurring for the SQL statement (a SELECT INTO) in the SP.
Binyamin, Try the steps listed under "Problem determination" in the link below https://www.ibm.com/docs/en/db2-for-zos/11?topic=codes-805 Thanks, Kolusu ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN