You have attempted to use nested-specific syntax in a class that is not nested.
Certain syntax is only applicable to nested classes and must be removed from any other type of class. For example, the SHARING
PARENT phrase is not permitted in containing classes.
...
end class.
class-id myContainingClass SHARING PARENT *> this is incorrect usage
01 myContainingStr string value "Hello .NET COBOL".
...
class-id myNestedClass SHARING PARENT *> this is correct usage
display self::myContainingStr.
end class.
...
end class.