A function is a temporary data item whose value is determined when the function is referenced during execution. Your COBOL system provides a library of intrinsic functions.
As an example of an intrinsic function, consider the following statement:
COMPUTE x = FUNCTION COS(y)
The intrinsic function cos computes a numeric value that approximates the cosine of an angle (expressed in y radians) and stores that value in x.