Reference exceeds allocated size of global data: variable name

The scope of the specified variable’s defined data area exceeds the end of the containing psect (either common or global). This error only occurs when running in debug mode or if the runtime has stopped due to a bounds-checking issue.