DB2 versions later than 4.1 return SQLCODEs without corresponding entries in the translate table. In this circumstance, AMD2 assigns a generic error message (“Error 33231”) and sends the associated text from the text table for that message number. To provide clients with more than the generic message, add new entries to the AMD2 message table for each new DB2 SQLCODE.
There are two options for translating new SQLCODEs to client messages. New SQLCODEs can be:
Mapped to existing DB2 UDB Option for CICS messages (“Error 30000”, “Error 30001”, and “Error 30002”).
Mapped to messages that correspond to Adaptive Server messages. These Adaptive Server messages may exist in the AMD2 message table, or you may need to create new entries for these messages.
The changes to the AMD2 message table for the preceding two options are shown in the following table.
Option |
Message number (MSGNO=) |
Translate table changes |
Text table changes |
For coding the changes, see |
---|---|---|---|---|
Map to existing DB2 UDB Option messages. |
Assign number by severity level: 30000–Error 30001–Warning 30002–Confirmation |
Add an SYRTMAMX entry for each new message. |
No change. |
|
Map to Adaptive Server messages. |
Use corresponding Adaptive Server message number. |
Add an SYRTMAMX entry for each new message. |
|
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |