Not sure about a compiler "option" if any, but you could try
MOVE ZERO TO FIELD-2
ADD FIELD-1 TO FIELD-2
which might "zap" it around sufficiently to encourage an S0C7.
(That's assuming your primary goal is to abend, rather than finding a compiler
option.)
On Mon, 15 Oct 2007 13:34:25 -0500, Peter Ten Eyck
<[EMAIL PROTECTED]> wrote:
>Enterprise COBOL 3.4.1 on z/OS 1.7
>
>The following does not abend:
>.
>.
>.
>01 FIELD-1 PIC 9(3).
>01 FIELD-2 PIC 9(3) COMP-3.
>.
>.
>.
>MOVE FIELD-1 TO FIELD-2.
>.
>.
>.
>
>Note: Prior to the move FIELD-1 contains "86 " thats F8F640
>
>What COBOL or LE option(s) do I need to change to make this code abend?
>
>----------------------------------------------------------------------
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html