Where to find more information

On setting error codes
See Setting error codes using completion codes.
On the JCCOPTS and OPCOPTS statements
See Customization and Tuning.
On coding message tables
See Customization and Tuning.