Skip to main content

Problem:

Compile program with 149,000 byte if statement with else clauses  inside one section receive cob32:

erros in compilation

Resolution:

Program has a large number of ELSE statements.

Reference File Handler Manual: System limits:

Numbers of ELSE Clauses

If a program contains IF statements with very many ELSE clauses, the program

might fail to compile.Problem can be resolved 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

EXPORT COBMAINSTACK=XXXXXX

Old KB# 2105