Hello chcain and welceom to the forums,
If your program terminates with an sql code, the explanation will be in the DB2 Messages and Codes manual:
http://publibz.boulder.ibm.com/cgi-bin/ ... 7/CONTENTS?
The "flashlight" (tubelight?) at the top of the page is the search function in the IBM manuals.