Thursday, December 4, 2008

What is array bounds checking ?

My program has an array defined to have 10 items. Due to a bug , I find that even if he program access the 11th item in the array, the program does not abend. What’s wrong with it?

Must use the compiler option SSRANGE, if u want array bounds checking.Default is NOSSRANGE.

For detailed description of these compiler options. Please refer to the following link COBOL Compiler options

No comments: