MSIR.0981: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (minor word changes) |
||
Line 2: | Line 2: | ||
<!--Test SOUL.DNC.007.QA in QASHR exercises at least some MSIR.0981 cases. PDS-6626 --> | <!--Test SOUL.DNC.007.QA in QASHR exercises at least some MSIR.0981 cases. PDS-6626 --> | ||
<p> | <p> | ||
This error usually results from an incorrect declaration or invocation of an [[Enhancement methods|enhancement method]]. The following examples are | This error usually results from an incorrect declaration or invocation of an [[Enhancement methods|enhancement method]]. The following examples are among the texts that might appear with this message: | ||
</p> | </p> | ||
<ul> | <ul> | ||
<li>An enhancement method | <li>An enhancement method is not declared in either the public shared or private shared block of a class. | ||
<p> | <p> | ||
In this case, the following message is produced: </p> | In this case, the following message is produced: </p> | ||
Line 11: | Line 11: | ||
</li> | </li> | ||
<li>An enhancement method | <li>An enhancement method must not be declared as a constructor — only subroutines, functions, or properties are allowed. | ||
<p> | <p> | ||
In this case the following message is produced: </p> | In this case the following message is produced: </p> | ||
Line 17: | Line 17: | ||
</li> | </li> | ||
<li>An enhancement class | <li>An enhancement class does not apply to the class containing its definition; it applies only to a separate class. | ||
<p> | <p> | ||
In this case, the following message is produced: </p> | In this case, the following message is produced: </p> |
Latest revision as of 17:45, 5 July 2018
MSIR.0981 Enhancement methods token
This error usually results from an incorrect declaration or invocation of an enhancement method. The following examples are among the texts that might appear with this message:
- An enhancement method is not declared in either the public shared or private shared block of a class.
In this case, the following message is produced:
MSIR.0981: Enhancement methods must be in a shared block
- An enhancement method must not be declared as a constructor — only subroutines, functions, or properties are allowed.
In this case the following message is produced:
MSIR.0981: Enhancement methods cannot be constructors
- An enhancement class does not apply to the class containing its definition; it applies only to a separate class.
In this case, the following message is produced:
MSIR.0981: Enhancement methods cannot apply to containing class
Message attributes:
RETCODEO=0 | Sets online return code |
---|---|
RETCODEB=4 | Sets batch (single user) return code |
CLASS=E | Error class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter |
AUDITER | Writes the message with line type ER to the audit trail |
COUNT | Increments the error count (ERCNT) parameter |
ECHO | Displays the line that caused the error |