The MAXSTMT option controls the compiler to flag blocks that have a larger number of statements than a specified number. In addition, under OPT(2), the compiler will turn off optimization for any block that has more than the specified number of statements. Under OPT(3), the compiler will not turn off optimization when a block has too many statements though the compile time might much greater when the MAXSTMT limit is exceeded.
>>-MAXSTMT--(size)---------------------------------------------><
When a large size is specified for MAXSTMT, if some blocks have a large number of statements, compilation might be aborted if there is not enough virtual storage available.
The default for MAXSTMT is 4096.