E List of Intrinsic Functions

The following list of intrinsic functions was extracted from cobc --list-intrinsics and shows the names of the available functions, an implementation note and the number of parameters.

  • Intrinsic Function Implemented Parameters

  • ABS Yes 1

  • ACOS Yes 1

  • ANNUITY Yes 2

  • ASIN Yes 1

  • ATAN Yes 1

  • BASECONVERT No 3

  • BIT-OF Yes 1

  • BIT-TO-CHAR Yes 1

  • BOOLEAN-OF-INTEGER No 2

  • BYTE-LENGTH Yes 1 - 2

  • CHAR Yes 1

  • CHAR-NATIONAL No 1

  • COMBINED-DATETIME Yes 2

  • CONCAT Yes Unlimited

  • CONCATENATE Yes Unlimited

  • CONTENT-LENGTH Yes 1

  • CONTENT-OF Yes 1 - 2

  • CONVERT No 3

  • COS Yes 1

  • CURRENCY-SYMBOL Yes 0

  • CURRENT-DATE Yes 0

  • DATE-OF-INTEGER Yes 1

  • DATE-TO-YYYYMMDD Yes 1 - 3

  • DAY-OF-INTEGER Yes 1

  • DAY-TO-YYYYDDD Yes 1 - 3

  • DISPLAY-OF No 1 - 2

  • E Yes 0

  • EXCEPTION-FILE Yes 0

  • EXCEPTION-FILE-N No 0

  • EXCEPTION-LOCATION Yes 0

  • EXCEPTION-LOCATION-N No 0

  • EXCEPTION-STATEMENT Yes 0

  • EXCEPTION-STATUS Yes 0

  • EXP Yes 1

  • EXP10 Yes 1

  • FACTORIAL Yes 1

  • FIND-STRING No 7 - 2

  • FORMATTED-CURRENT-DATE Yes 1

  • FORMATTED-DATE Yes 2

  • FORMATTED-DATETIME Yes 4 - 5

  • FORMATTED-TIME Yes 3 - 4

  • FRACTION-PART Yes 1

  • HEX-OF Yes 1

  • HEX-TO-CHAR Yes 1

  • HIGHEST-ALGEBRAIC Yes 1

  • INTEGER Yes 1

  • INTEGER-OF-BOOLEAN No 1

  • INTEGER-OF-DATE Yes 1

  • INTEGER-OF-DAY Yes 1

  • INTEGER-OF-FORMATTED-DATE Yes 2

  • INTEGER-PART Yes 1

  • LENGTH Yes 1 - 2

  • LENGTH-AN Yes 1

  • LOCALE-COMPARE       Yes     2 - 3

  • LOCALE-DATE Yes 1 - 2

  • LOCALE-TIME Yes 1 - 2

  • LOCALE-TIME-FROM-SECONDS Yes 1 - 2

  • LOG Yes 1

  • LOG10 Yes 1

  • LOWER-CASE Yes 1

  • LOWEST-ALGEBRAIC Yes 1

  • MAX Yes Unlimited

  • MEAN Yes Unlimited

  • MEDIAN Yes Unlimited

  • MIDRANGE Yes Unlimited

  • MIN Yes Unlimited

  • MOD Yes 2

  • MODULE-CALLER-ID Yes 0

  • MODULE-DATE Yes 0

  • MODULE-FORMATTED-DATE Yes 0

  • MODULE-ID Yes 0

  • MODULE-NAME No 1

  • MODULE-PATH Yes 0

  • MODULE-SOURCE Yes 0

  • MODULE-TIME Yes 0

  • MONETARY-DECIMAL-POINT Yes 0

  • MONETARY-THOUSANDS-SEPARATOR Yes 0

  • NATIONAL-OF No 1 - 2

  • NUMERIC-DECIMAL-POINT Yes 0

  • NUMERIC-THOUSANDS-SEPARATOR Yes 0

  • NUMVAL Yes 1

  • NUMVAL-C Yes 2

  • NUMVAL-F Yes 1

  • ORD Yes 1

  • ORD-MAX Yes Unlimited

  • ORD-MIN Yes Unlimited

  • PI Yes 0

  • PRESENT-VALUE Yes Unlimited

  • RANDOM Yes 0 - 1

  • RANGE Yes Unlimited

  • REM Yes 2

  • REVERSE Yes 1

  • SECONDS-FROM-FORMATTED-TIME Yes 2

  • SECONDS-PAST-MIDNIGHT Yes 0

  • SIGN Yes 1

  • SIN Yes 1

  • SQRT Yes 1

  • STANDARD-COMPARE No 2 - 4

  • STANDARD-DEVIATION Yes Unlimited

  • STORED-CHAR-LENGTH Yes 1

  • SUBSTITUTE Yes Unlimited

  • SUBSTITUTE-CASE Yes Unlimited

  • SUM Yes Unlimited

  • TAN Yes 1

  • TEST-DATE-YYYYMMDD Yes 1

  • TEST-DAY-YYYYDDD Yes 1

  • TEST-FORMATTED-DATETIME Yes 2

  • TEST-NUMVAL Yes 1

  • TEST-NUMVAL-C Yes 2

  • TEST-NUMVAL-F Yes 1

  • TRIM Yes 1 - 2

  • UPPER-CASE Yes 1

  • VARIANCE Yes Unlimited

  • WHEN-COMPILED Yes 0

  • YEAR-TO-YYYY Yes 1 - 3