When does the compiler give MAXCC 8 and when does it give MAXCC 12?
Please give me the difference between MAXCC= 8 or 12 or 16
Terminology is critical in IT, where similar terms may mean very different things. The ONLY time MAXCC is applicable is when you are running IDCAMS and refer to the condition code set by one of its commands. It is NOT appropriate to refer to MAXCC if you are not talking about IDCAMS.
In z/OS, batch job steps have return codes -- not MAXCC -- that are set to different values from 0 to 4095 depending upon the program.
Hence, your very question makes no sense. Compilers are not IDCAMS and hence you cannot
refer to MAXCC for them, period. Please learn the difference between MAXCC and return code and use the correct and appropriate terminology. In general, compilers will set a return code of 4 when there are warnings -- in other words, the compiler is interpreting something in the code in a particular way and is warning you to check it. Return code 8 means there are errors in your code that need to be corrected. The compiler may have attempted a fix, but that fix may not be apprpriate. Return code 12 is generally a severe error and the compile failed. Return code 16 is usually reserved for catastrophic compiler problems -- such as not defining the correct DD statements, so the compiler cannot continue and may not be able to print messages as to why not.