Ted Ashton ([log in to unmask]) wrote:
: A value out of subrange *used* to fall under the XLIBTRAP domain but has
: now moved to the (undocumented) XCODETRAP domain.

Actually they aren't in any domain.  :-)
You should use try/recover for all.
My documentation for XCODETRAP doesn't indicate it handles range errors.

: I'd've heard of XCODETRAP in time, I'd've probably used that

Bad..., if you are going to use any trap routine use what the Trap Handling
Programmer's Guide documents:
HPENABLTRAP/XARITRAP.

One of them is range errors.
In fact, you should call COBOLTRAP and see what COBOL does for you.

It tells you the value and the limit and gives you the line number.

: I've ripped XLIBTRAP completely out, replacing it with Try/Recover.
: Ted

You've seen the force.