In order to use the windowing syntax, you must use the PREPROCESS"window1" Compiler directive.
You can specify this directive in one of two ways.
cobol prog.cbl preprocess"window1" color endp;
cob -C preprocess=window1 prog.cbl
The PREPROCESS "window1" directive must be the last Compiler directive apart from NOERRQ, AUTOCLOSE or COLOR. If an error is encountered, the Compiler asks if you wish to continue, and waits for your response. In order to disable this function, you must specify the NOERRQ directive after PREPROCESS"window1".