I am getting SQL error code -333 while trying to insert some values in a table. The table have a column declared as VARCHAR, and the SQL error is coming while inserting value in that column only. When I tried below option it worked fine.
INSERT INTO AAAA
(ACTY_DTL)
VALUES
(VARCHAR(:GIBD728-ACTY-DTL))
(ACTY_DTL)
VALUES
(VARCHAR(:GIBD728-ACTY-DTL))
Anyone can suggest me a better option for this.
Description for error code -333 is THE SUBTYPE OF A STRING VARIABLE IS NOT THE SAME AS THE SUBTYPE KNOWN AT BIND TIME AND THE DIFFERENCE CANNOT BE RESOLVED BY CHARACTER CONVERSION