MAXGEN

The MAXGEN option specifies the maximum number of intermediate language statements that should be generated for any user statement. The option will cause the compiler to flag any statement where this maximum is exceeded.

Read syntax diagramSkip visual syntax diagram
>>-MAXGEN--(size)----------------------------------------------><

The number of intermediate language statements generated for any user statement might vary depending on the compiler release, the compiler maintenance level, and the compiler options in effect. This option is intended only to help you find statements for which excessive amounts of code are generated, which might indicate that they are perhaps are poorly coded.

However, note that using a preprocessor might cause the number of intermediate language statements generated for some statements to be very large. In such a situation, it might be better either to set the MAXGEN threshold to be larger or to use the LISTVIEW(AFTERALL) option.

The default is MAXGEN(100000).