On Tue, 12 Aug 2014 06:01:52 -0400, Robert A. Rosenberg wrote:

>At 20:01 -0700 on 08/11/2014, Duffy Nightingale, SS wrote about Re:
>INITILAIZE COST:
>
>>Heavy emphasis on that last sentence.   Just had a customer who
>>didn't keep track of the number of entries in his COBOL table while
>>adding new ones. Ended up adding entries way beyond the end of his
>>table leading to altering the fields following the table to wrong
>>values leading to very strange scary looking dumps that seemed to
>>point to big problems in unsupported code!  But, nope, simple, his
>>table got bigger than the definition.
>
>I thought the code spotted an attempt to go beyond the end of the
>table by exceeding the OCCURS value or am I thinking of PL/I which
>would catch this error?
>

It's a COBOL compiler option. The default is NO. 
http://www-01.ibm.com/support/knowledgecenter/api/content/SS6SG3_5.1.0/com.ibm.cobol511.ent.doc/custom/igycch257.html

Norbert Friemel

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to