COBCH1621 - COBCH1640
Lists the Syntax Checking error messages from COBCH1621 through COBCH1640.
COBCH1621 Must specify a method invoke expression with no parameters
When using the
method
keyword to specify a method from a method group, you must not specify any parameters.
COBCH1622 A SIZE OF expression cannot be used as a receiving item
You have attempted to use the SIZE OF expression as part of a receiving item.
COBCH1623 Anonymous method or method group cannot be cast to type name.
An anonymous method or method group cannot be found with a valid signature for the delegate.
COBCH1624 Cannot implicitly convert type1 to type2.
A SET statement cannot be completed, because you cannot convert to or from the specified type.
COBCH1625 Cannot convert type1 to type2.
The casting expression cannot be completed, because you cannot convert to or from the specified type.
COBCH1626 Invalid test: type1 cannot be instance of type2.
The INSTANCE OF phrase has encountered a type safety issue, and you cannot cast to or from the specified types.
COBCH1627 Preferred syntax uses pseudo-text delimiters (==) instead of quotes
The REPLACING LEADING or REPLACING TRAILING phrase of the COPY statement has specified the wrong delimiters for text replacement.
COBCH1628 Cannot determine type of local variable
The Compiler could not resolve the type for a DECLARE expression.
COBCH1629 REPLACING assumed
A possible misspelling has been found in the REPLACING phrase of the COPY statement.
COBCH1631 ATTACH and DETACH statements can only be applied to events
You can only use the
attach
or
detach
syntax on delegate fields that have the
event
keyword specified.
COBCH1632 Cannot specify ALL numeric literal
In this COBOL system, you cannot precede a numeric literal with the keyword ALL.
COBCH1633 Procedure division too large or complex - try using performtype(mf)
COBCH1634 Extended ACCEPT/DISPLAY not allowed with a Windows GUI executable (ILSUBSYSTEM"2")
Your Windows application has specified an extended ACCEPT or DISPLAY statement.
COBCH1635 Interface <interface-name> does not include member <member-name>
A method or property has been specified using the FOR
interface-name
phrase, but the interface does not contain a method or property of that name.
COBCH1636 When compiling for managed code, this feature is supported only in procedural COBOL
You have used syntax that is not supported in class programs. It is only supported in procedural programs.
COBCH1637 Illegal use of method invoke expression - Use INVOKE verb
An inline invoke expression has been specified in a context that requires the INVOKE verb.
COBCH1638 Start key ambiguous; using key key-name-1 (key key-name-2 has same offset)
A START statement KEY phrase specifies the data-name of data item that has the same offset as two or more split keys of an indexed organization file.
COBCH1639 Required parameters must be specified before any optional ones
An optional parameter has been specified before a required parameter in the declaration of a method.
COBCH1640 Optional parameters cannot be specified with BY REFERENCE OUTPUT or PARAMS
A reference or output parameter has been declared as optional.
Parent topic:
Messages COBCH1601 - COBCH1700