Peter Ten Eyck wrote:
Thanks for the replies. If I am reading the replies correctly, a move statement
of:
01 FIELD-1 PIC 9(3).
01 FIELD-2 PIC 9(3) COMP-3.
MOVE FIELD-1 TO FIELD-2.
Will not abend regardless of the data in FIELD-1, unless the fields are signed.
There is no way to control this trough a COBOL compiler option or LE runtime
option?
That's correct. I'm a little confused as to what you are
after: do you want some way to force an abend if there's
non-valid numeric data in your program? If so: why? Are
you looking for some way to validate numeric data before
using it? if so, I recommend you not use abends as the
way to find out. Perhaps if it were clearer what you are
really after we might be able to offer some useful
suggestions.
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
z/OS Application development made easier
* Our classes include
+ How things work
+ Programming examples with realistic applications
+ Starter / skeleton code
+ Complete working programs
+ Useful utilities and subroutines
+ Tips and techniques
----------------------------------------------------------------------
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