In the following example, the messsgeEnd method does not take the parameter 4 that has been attempted to pass to it.
class-id myClass. method-id main static. display self::messageEnd(4) end method. method-id messageEnd returning val as string static. set val = "End of Program." end method. end class.
This message is produced in contexts when a static method is required.