MSIR.0765 (method) not (what) in class (class): Difference between revisions
Jump to navigation
Jump to search
(Created page with "A non-shared class member was accessed via shared member syntax or a non-constructor class member was access without a variable or class name. In the former case, <tt>%(classname...") |
(Automatically generated page update) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
A non-shared class member was accessed via shared member syntax or a non-constructor class member was access without a variable or class name. In the former case, < | A non-shared class member was accessed via shared member syntax or a non-constructor class member was access without a variable or class name. In the former case, <code>%(<i>classname</i>)</code> syntax is only allowed for shared members. | ||
[[Category: | In the latter case, the <code>%variable = method</code> syntax is only allowed when <var class="term">method</var> is a constructor, as in: | ||
<p class="code">%myList = new</p> | |||
If the reference is for a system class, check the class documentation to determine which members of the class are shared members or constructors. If the object is a member of a [[SOUL]] class, see the class definition (<var>Public</var>, <var>Private</var>, <var>Public Shared</var>, and <var>Private Shared</var> blocks) to determine which members of the class are shared or constructors. | |||
{{Template:MSIR.0765 footer}} | |||
[[Category:MSIR.0600 - MSIR.0799]] |
Latest revision as of 23:34, 3 March 2017
A non-shared class member was accessed via shared member syntax or a non-constructor class member was access without a variable or class name. In the former case, %(classname)
syntax is only allowed for shared members.
In the latter case, the %variable = method
syntax is only allowed when method is a constructor, as in:
%myList = new
If the reference is for a system class, check the class documentation to determine which members of the class are shared members or constructors. If the object is a member of a SOUL class, see the class definition (Public, Private, Public Shared, and Private Shared blocks) to determine which members of the class are shared or constructors.
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 |