MSIR.0981: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
m (add link)
Line 1: Line 1:
{{Template:MSIR.0981 skeleton}}
{{Template:MSIR.0981 skeleton}}
<p>
<p>
This error usually results from an incorrect declaration or invocation of an enhancement method. The following examples are amongst the texts that might appear with this message:
This error usually results from an incorrect declaration or invocation of an [[Enhancement methods|enhancement method]]. The following examples are amongst the texts that might appear with this message:
</p>
</p>
<ul>
<ul>
<li>An enhancement method isn't declared in either the public shared or private shared block of a class, in which case the following message is produced:
<li>An enhancement method isn't declared in either the public shared or private shared block of a class.
<p>
In this case, the following message is produced: </p>
<p class="code>MSIR.0981: Enhancement methods must be in a shared block</p>
<p class="code>MSIR.0981: Enhancement methods must be in a shared block</p>
</li>
<li>An enhancement method cannot be declared as a constructor - only subroutines, functions, or properties are allowed. In this case the following message is produced
<p class="code>MSIR.0981: Enhancement methods cannot be constructors</p>
</li>
</li>
<li>An enhancement class cannot apply to the class containing its definition, only to a separate class. In this case the following message is produced:
<p class="code>MSIR.0981: Enhancement methods cannot apply to containing class</p>
<li>An enhancement method cannot be declared as a constructor - only subroutines, functions, or properties are allowed.
</li>  
<p>
In this case the following message is produced: </p>
<p class="code>MSIR.0981: Enhancement methods cannot be constructors </p>
</li>
 
<li>An enhancement class cannot apply to the class containing its definition, only to a separate class.  
<p>
In this case, the following message is produced: </p>
<p class="code>MSIR.0981: Enhancement methods cannot apply to containing class </p></li>  
</ul>
</ul>
<p>
<b>Response:</b>
</p>
{{Template:MSIR.0981 footer}}
{{Template:MSIR.0981 footer}}

Revision as of 19:42, 25 June 2018

MSIR.0981  Enhancement methods token

This error usually results from an incorrect declaration or invocation of an enhancement method. The following examples are amongst the texts that might appear with this message:

  • An enhancement method isn't 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 cannot 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 cannot apply to the class containing its definition, 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=0Sets online return code
RETCODEB=4Sets batch (single user) return code
CLASS=EError class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter
AUDITERWrites the message with line type ER to the audit trail
COUNTIncrements the error count (ERCNT) parameter
ECHODisplays the line that caused the error

Back to list of messages