> -----Original Message-----
> From: IBM Mainframe Discussion List On Behalf Of Robert A. Rosenberg
> 
> 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?

Depends on compile-time option SSRANGE / NOSSRANGE.

http://www-01.ibm.com/support/knowledgecenter/SS6SG3_5.1.0/com.ibm.cobol511.ent.doc/custom/igycch257.html?lang=en

    -jc-

**********************************************************************
Information contained in this e-mail message and in any attachments thereto is 
confidential. If you are not the intended recipient, please destroy this 
message, delete any copies held on your systems, notify the sender immediately, 
and refrain from using or disclosing all or any part of its content to any 
other person.

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

Reply via email to