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

SQLCODE -303

Host variable truncation

Explanation

Host variable is too small to hold the retrieved value.

Solution

Increase host variable size to match or exceed column size.

Example

PIC X(5) for VARCHAR(100) column