Personally I have NEVER used subscript range. I have always checked the upper ranges Before I do anything having to do with indexing through arrays
Steve -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Mike Schwab Sent: Monday, April 4, 2016 7:40 PM To: [email protected] Subject: Re: COBOL 5.2 Programs too large to compile? Apparently, Cobol 5.1 no longer allows turning off the subscript range checking. And the original post stated the failure occurs when the exceed the defined maximum number of occurrences. On Mon, Apr 4, 2016 at 7:35 PM, Paul Gilmartin <[email protected]> wrote: > On Mon, 4 Apr 2016 19:08:08 -0500, Mike Schwab wrote: > >>https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v >>2r1.ceea100/ceea1mst83.htm >> >> >>On Mon, Apr 4, 2016 at 7:01 PM, Cameron Conacher wrote: >>> We need up turning off optimization and the program compiled. >>> We are now seeing some coding issues. We have programs that SET INDEX-ITEM >>> UP BY +1 where the value would would be larger than the OCCURS clause >>> defined. Resulting in 0C7. >>> We do not see this with previous versions if COBOL. >>> > The question then becomes, is this a new bug in the compiler, or > improved error checking discovering a long-standing error in the user's > program? > > -- gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to [email protected] with the message: INFO IBM-MAIN -- Mike A Schwab, Springfield IL USA Where do Forest Rangers go to get away from it all? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
