The built-in function decabs() accepts a decimal-type expression as argument and returns the absolute value of the decimal argument (the same decimal type as the argument, and the same magnitude, but positive). The function does not change the content of the argument.
y = decabs ( x );
See the z/OS XL C/C++ Runtime Library Reference for more information on the decabs() library function.