Pro*COBOL 8.x (or later) rejects some Micro Focus COBOL language extensions, data definitions and section headings:
To overcome this you need to put these items into copybooks which are not opened by Pro*COBOL. However, this does not work if you use CP which expands copybooks before Pro*COBOL is invoked. This could cause a problem if you are using htmlpp which calls CP to expand copybooks. You must therefore invoke htmlpp before COBSQL.
For example, the following compile line works:
whereas this line does not:
You must define at least one variable within the Working-Storage Section for Pro*COBOL to add its variables to the generated .cbl file.