Skip to main content

I am going through the above book in VCPE 3.0 for VS 2017 trying to compile the simpledate.cbl program and it throws error "

COBCH0858 No static method found - cannot be a main program

In checking there are in fact no static methods. How can I fix this? Do I have some settings that are off? Thanks 

I am going through the above book in VCPE 3.0 for VS 2017 trying to compile the simpledate.cbl program and it throws error "

COBCH0858 No static method found - cannot be a main program

In checking there are in fact no static methods. How can I fix this? Do I have some settings that are off? Thanks 

Add static to the Class constructor as below:
Class-id MicroFocus.COBOL.Book.Examples.MainClass Static.

I think that this will resolve the error.