Created On: 22 June 2011
Problem:
What directive can I use to cause the compiler to ignore certain errors such as: "COBCH1118E Index-name belongs to different table - unexpected behavior may occur"?
Resolution:
The CHANGE-MESSAGE directive can be used. This will change the severity of the error messages. Messages can also be suppressed or returned to their original severity.
Syntax:
-------------------
V |
>>-.---.-.-----CHANGE-MESSAGE--"error svrty"--.-><
-/- -NO--CHANGE-MESSAGE-----------------
Parameters:
error Number of message to be changed or ALL meaning all messages.
svrty New severity :
S Serious
E Error
W Warning
I Informational
N Do not produce this message
R Reset to normal severity
For example, the following sets error 1118 to warning: CHANGE-MESSAGE"1118 W"
Syntax:
-------------------
V |
>>-.---.-.-----CHANGE-MESSAGE--"error svrty"--.-><
-/- -NO--CHANGE-MESSAGE-----------------
Parameters:
error Number of message to be changed or ALL meaning all messages.
svrty New severity :
S Serious
E Error
W Warning
I Informational
N Do not produce this message
R Reset to normal severity
For example, the following sets error 1118 to warning: CHANGE-MESSAGE"1118 W"
Incident #2504337
Old KB# 34185
#MFDS
#EnterpriseDeveloper