All arithmetic operations are performed by inline code. The code expects fixed-point overflow to be disabled (with the PSW mask bit), causing integer overflow to be ignored for both unsigned and signed operands. Integer division by 0 causes abnormal program termination (program interruption code 0009) if no arithmetic signal handler is defined.
Floating-point exceptions produce a program interrupt that causes abnormal program termination (program interruption codes 000D or 000F) if no arithmetic signal handler is defined. Note that the code will execute correctly whether or not floating-point underflow is disabled (via the PSW mask bit). Consult the appropriate IBM principles of operation manual for more information about the floating-point formats and exceptions.
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.