M204.2161

From m204wiki
Revision as of 03:37, 14 March 2018 by DmeWiccan (talk | contribs) (Automatically generated page update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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