Intrinsic Functions


An intrinsic function is a function that performs a mathematical, character or logical operation to a variable whose value is derived automatically during the program execution.

The functions can be grouped into six categories based on the type of service performed. They are - mathematical, statistical, date/time, financial, character-handling and general.

A function can be used by specifying its name along with required arguments in a Procedure Division statement. Functions use elementary variables and return alphanumeric, numeric, integer, Boolean or date-time values. Functions cannot serve as receiving operands.

Below list specifies the intrinsic functions -

  • ACOS
  • ADD-DURATION
  • ANNUITY
  • ASIN
  • ATAN
  • CHAR
  • CONVERT-DATE-TIME
  • COS
  • CURRENT-DATE
  • DATE-OF-INTEGER
  • DAY-OF-INTEGER
  • DAY-TO-YYYYDDD
  • EXTRACT-DATE-TIME
  • DATE-TO-YYYYMMDD
  • DISPLAY-OF
  • FACTORIAL
  • FIND-DURATION
  • INTEGER
  • INTEGER-OF-DATE
  • INTEGER-OF-DAY
  • INTEGER-PART
  • LENGTH
  • LOCALE-DATE
  • LOCALE-TIME
  • LOG
  • LOG10
  • LOWER-CASE
  • MAX
  • MEAN
  • MEDIAN
  • MIDRANGE
  • MIN
  • MOD
  • NATIONAL-OF
  • NUMVAL
  • NUMVAL-C
  • ORD
  • ORD-MAX
  • ORD-MIN
  • PRESENT-VALUE
  • RANDOM
  • RANGE
  • REM
  • REVERSE
  • SIN
  • SQRT
  • STANDARD-DEVIATION
  • SUBTRACT-DURATION
  • SUM
  • TAN
  • TEST-DATE-TIME
  • TRIM
  • TRIML
  • TRIMR
  • UPPER-CASE
  • VARIANCE
  • UTF8STRING
  • WHEN-COMPILED
  • YEAR-TO-YYYY