To continue to use the syntax in .NET COBOL code, move it to a procedural program and call it from within a class method.