If your program contains IF statements with many ELSE clauses, it might fail to compile. You can get round this problem by increasing the size of the mian stack using the COBMAINSTACK environment variable; for more information see the entry for COBMAINSTACK in the appendix Environment Variables in your User's Guide .