M204.2161: 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>
When a Screen or Image is to be declared global, the GLOBAL keyword must appear on the initial declaration and may not appear on subsequent declarations. The following is an example of an erroneous secondary declaration (in the subroutine): </P>
When a Screen or Image is to be declared global, the <var>Global</var> keyword must appear on the initial declaration and may not appear on subsequent declarations. </p>
<P class="code">SCREEN XYZ GLOBAL
END SCREEN </P>
<P class="code">SUBROUTINE ABC (%A)
DECLARE SCREEN XYZ GLOBAL
END SUBROUTINE </P>
<p>
<p>
<b>Response:</b> Change the GLOBAL keyword on the DECLARE statement to COMMON. </p>
The following is an example of an erroneous secondary declaration (in the subroutine): </P>
<P class="code">Screen XYZ Global
End Screen
</P>
<P class="code">Subroutine ABC (%a)
Declare Screen XYZ Global
End Subroutine </P>
<p>
<b>Response:</b> Change the <var>Global</var> keyword on the <var>Declare</var> statement to <var>Common</var>.  
</p>
{{Template:M204.2161 footer}}
{{Template:M204.2161 footer}}
<!-- skeleton as it was in pdf/SECONDARY DECLARATIONS OF GLOBALS MUST SPECIFY 'COMMON' /-->
<!-- skeleton as it was in pdf/SECONDARY DECLARATIONS OF GLOBALS MUST SPECIFY 'COMMON' /-->

Latest revision as of 19:35, 16 March 2018

M204.2161  Secondary declarations of globals must specify 'Common'

When a Screen or Image is to be declared global, the Global keyword must appear on the initial declaration and may not appear on subsequent declarations.

The following is an example of an erroneous secondary declaration (in the subroutine):

Screen XYZ Global End Screen

Subroutine ABC (%a) Declare Screen XYZ Global End Subroutine

Response: Change the Global keyword on the Declare statement to Common.

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
COMPILECompilation error

Back to list of messages