M204.2490: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
m (add <var>'s)
 
Line 2: Line 2:


<P>
<P>
An attempt was made to assign a value to a variable declared with the STATIC attribute. STATIC variables may not be the target of an assignment statement, and they may not be used as INOUT or OUTPUT subroutine parameters for a
An attempt was made to assign a value to a variable declared with the <var>Static</var> attribute. <var>Static</var> variables may not be the target of an assignment statement, and they may not be used as <var>Inout</var> or <var>Output</var> subroutine parameters for a complex subroutine.</P>
complex subroutine.</P>
<p>
<p>
<b>Response:</b> If the variable needs to be modified, remove the STATIC attribute from the declaration. Otherwise, remove or change the assignment statement.
<b>Response:</b> If the variable needs to be modified, remove the <var>Static</var> attribute from the declaration. Otherwise, remove or change the assignment statement.
</p>
</p>
{{Template:M204.2490 footer}}
{{Template:M204.2490 footer}}
<!-- skeleton as it was in pdf/ILLEGAL ASSIGNMENT TO STATIC %VARIABLE/-->
<!-- skeleton as it was in pdf/ILLEGAL ASSIGNMENT TO STATIC %VARIABLE/-->

Latest revision as of 21:05, 19 March 2018

M204.2490  Illegal assignment to static %variable

An attempt was made to assign a value to a variable declared with the Static attribute. Static variables may not be the target of an assignment statement, and they may not be used as Inout or Output subroutine parameters for a complex subroutine.

Response: If the variable needs to be modified, remove the Static attribute from the declaration. Otherwise, remove or change the assignment statement.

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