I don't know Cobol. Is there any main file as in any other language?
Set main project file as main (right mouse)
When you will run compilation, the main file will be send to compiler instead of
the current file

-- 
<https://forum.pspad.com/read.php?2,69783,69784>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem