Try in your shell:
You can replace SQL100W with any error you receive from DB2. Actually, you can omit the trailing W, E, C, or I character, and you don't need the leading 0's in the number:
The only other thing to remember is how to get the message number based on the SQLCODE. You just remove the sign and prepend the string "sql".