Hi,

>We are planning to switch from COBOL V4 to V6.4 in due time.
>We have found that the INVDATA option of COBOL V6.4 mimics the V4 behaviour=
> and plan to use it when 6.4 compiled modules throw error when invalid data=
> is present.
>One such test was to check the 0 length and negative length moves as in the=
> following:


You are mixing up invalid data checking (NUMCHECK) and invalid subscript
checking (SSRANGE).  The error you get is from SSRANGE, so you could make
it go away by setting NOSSRANGE.  Better yet, what would the programmer
expect from a substring using a negative length?  This is clearly a
programming error and should be corrected, which would also make the
make the SSRANGE run-time error go away.

Finally, please do not use INVDATA and tolerate invalid data usage,
change your programs to follow the rules and avoid future problems!

Cheers,
TomR              >> COBOL is the Language of the Future! <<

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

Reply via email to