MSIR.0798 Explicit (globses) name required for shared variables: Difference between revisions
Jump to navigation
Jump to search
(Created page with "A shared class variable was declared as Global or Session but no global or session name was specified. While non-class global or session variables use the variable name (without ...") |
(Automatically generated page update) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
A shared class variable was declared as Global or Session but no global or session name was specified. While non-class global or session variables use the variable name (without the leading percent) as their global or session name if one is not specified, shared variables do not. | A shared class variable was declared as Global or Session but no global or session name was specified. While non-class global or session variables use the variable name (without the leading percent) as their global or session name if one is not specified, shared variables do not. | ||
[[Category: | Specify an explicit global name, as in the following example: | ||
<p class="code">class silly | |||
public shared | |||
variable absurd is object stringList shared('SILLY:ABSURD') | |||
end public shared | |||
end class</p> | |||
{{Template:MSIR.0798 footer}} | |||
[[Category:MSIR.0600 - MSIR.0799]] |
Latest revision as of 23:34, 3 March 2017
A shared class variable was declared as Global or Session but no global or session name was specified. While non-class global or session variables use the variable name (without the leading percent) as their global or session name if one is not specified, shared variables do not.
Specify an explicit global name, as in the following example:
class silly public shared variable absurd is object stringList shared('SILLY:ABSURD') end public shared end 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 |