Actually, Tom Ross in his migration presentation recommends this procedure:

Best Practices for COBOL V5/V6 Migration
To find out if users have invalid data, IBM has recommendations for
migrating to COBOL V5/V6:
1. Compile with SSRANGE, ZONECHECK and OPT(0) for initial code
changes and unit test
– To find table misuse and invalid data
– OPT(0) programs are easiest to debug
2. Recompile with NOSSRANGE, NOZONECHECK and OPT(2) for
quality assurance test and production
– NOSSRANGE and NOZONECHECK are required for good
performance
– OPT(2) is preferred for good performance in production
 Note: You may have to change to a 2-compile development process if
you are not using one already

No mention of INITCHECK there at all.

Peter

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Bill Woodger
Sent: Friday, January 27, 2017 4:28 AM
To: [email protected]
Subject: Re: COBOL V5.2 question: INITCHECK option incompatible with 
OPTIMIZE(0)? (Msg IGYOS4021-W)

On Thu, 26 Jan 2017 20:56:27 -0600, Mike Schwab <[email protected]> wrote:

>Initially, the numeric / zero checks would not work like before.  I 
>know there is an parm to make it work like before in 6.1.  Not sure if 
>they applied it to 5.2.
>
>IBM Cobol Documentation page.  Click on Version (6.1) then download 
>Migration guide.  Compare to 5.2 guide.
>http://www-01.ibm.com/support/docview.wss?uid=swg27036733 & download PDF.

INITCHECK is new, so can't really have a different behaviour to before.

I think what you are referring to is the general problem that using "bad data", 
which then gives "undefined results" (perhaps rather "not the expected defined 
results") can change between compilers (up to V4.2 vs V5+).

IBM's recommendation is to compile with SSRANGE, ZONECHECK and INITCHECK and 
run regression-tests (acutually, since INITCHECK is a compile-time-only thing, 
check the compile listing before running anything for that...). Even where 
suggesting that there should be a mention of OPT greater than zero if required 
for INITCHECK.

--


This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


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

Reply via email to