Master Mainframe Technologies - COBOL, JCL, DB2, VSAM, CICS & More
ABEND Codes SQLCODEs File Status Interview Prep Contact
← Back to SQLCODE Reference
Error

SQLCODE -518

EXECUTE without PREPARE

Explanation

EXECUTE attempted on statement not prepared.

Solution

Execute PREPARE before EXECUTE.

Example

EXECUTE stmt-name without prior PREPARE