Previous Topic: Scalar FunctionNext Topic: CA IDMS Scalar Functions


Expansion of Scalar-function

A scalar function operates on 0 or more value expressions, resulting in a single value.

Syntax

Expansion of scalar-function

►►─┬──user-defined-function ────────────────────┬─────────────────────────────►◄
   ├─ ABS-function ─────────────────────────────┤
   ├─ ACOS-function ────────────────────────────┤
   ├─ ASIN-function ────────────────────────────┤
   ├─ ATAN-function ────────────────────────────┤
   ├─ ATAN2-function ───────────────────────────┤
   ├─ CAST-function ────────────────────────────┤
   ├─ CEIL-function ────────────────────────────┤
   ├─ CEILING-function ─────────────────────────┤
   ├─ CHAR-function ────────────────────────────┤
   ├─ CHAR_LENGTH-function ─────────────────────┤
   ├─ CHARACTER_LENGTH-function ────────────────┤
   ├─ COALESCE-function ────────────────────────┤
   ├─ CONCAT-function ──────────────────────────┤
   ├─ CONVERT-function ─────────────────────────┤
   ├─ COS-function ─────────────────────────────┤
   ├─ COSH-function ────────────────────────────┤
   ├─ COT-function ─────────────────────────────┤
   ├─ CURDATE-function ─────────────────────────┤
   ├─ CURTIME-function ─────────────────────────┤
   ├─ DATABASE-function ────────────────────────┤
   ├─ DATE-function ────────────────────────────┤
   ├─ DAY-function ─────────────────────────────┤
   ├─ DAYNAME-function ─────────────────────────┤
   ├─ DAYOFMONTH-function ──────────────────────┤
   ├─ DAYOFWEEK-function ───────────────────────┤
   ├─ DAYOFYEAR-function ───────────────────────┤
   ├─ DAYS-function ────────────────────────────┤
   ├─ DECIMAL-function ─────────────────────────┤
   ├─ DEGREES-function ─────────────────────────┤
   ├─ DIGITS-function ──────────────────────────┤
   ├─ EXP-function ─────────────────────────────┤
   ├─ FLOAT-function ───────────────────────────┤
   ├─ FLOOR-function ───────────────────────────┤
   ├─ HEX-function ─────────────────────────────┤
   ├─ HOUR-function ────────────────────────────┤
   ├─ IFNULL-function ──────────────────────────┤
   ├─ INSERT-function ──────────────────────────┤
   ├─ INTEGER-function──────────────────────────┤
   ├─ LCASE-function  ──────────────────────────┤
   ├─ LEFT-function   ──────────────────────────┤
   ├─ LENGTH-function ──────────────────────────┤
   ├─ LOCATE-function ──────────────────────────┤
   ├─ LOG-function    ──────────────────────────┤
   ├─ LOG10-function  ──────────────────────────┤
   ├─ LOWER-function  ──────────────────────────┤
   ├─ LTRIM-function  ──────────────────────────┤
   ├─ MICROSECOND-function──────────────────────┤
   ├─ MINUTE-function───────────────────────────┤
   ├─ MOD-function   ───────────────────────────┤
   ├─ MONTH-function ───────────────────────────┤
   ├─ MONTHNAME-function ───────────────────────┤
   ├─ NOW-function ─────────────────────────────┤
   ├─ OCTET_LENGTH-function ────────────────────┤
   ├─ PI-function  ─────────────────────────────┤
   ├─ POSITION-function  ───────────────────────┤
   ├─ POWER-function  ──────────────────────────┤
   ├─ PROFILE-function──────────────────────────┤
   ├─ QUARTER-function──────────────────────────┤
   ├─ RADIANS-function──────────────────────────┤
   ├─ RAND-function─────────────────────────────┤
   ├─ REPEAT-function───────────────────────────┤
   ├─ REPLACE-function──────────────────────────┤
   ├─ RIGHT-function  ──────────────────────────┤
   ├─ ROUND-function  ──────────────────────────┤
   ├─ RTRIM-function  ──────────────────────────┤
   ├─ SECOND-function ──────────────────────────┤
   ├─ SIGN-function   ──────────────────────────┤
   ├─ SIN-function    ──────────────────────────┤
   ├─ SINH-function   ──────────────────────────┤
   ├─ SPACE-function  ──────────────────────────┤
   ├─ SQRT-function   ──────────────────────────┤
   ├─ SUBSTR-function ──────────────────────────┤
   ├─ SUBSTRING-function ───────────────────────┤
   ├─ TAN-function ─────────────────────────────┤
   ├─ TANH-function ────────────────────────────┤
   ├─ TIME-function ────────────────────────────┤
   ├─ TIMESTAMP-function ───────────────────────┤
   ├─ TRIM-function ────────────────────────────┤
   ├─ TRUNCATE-function─────────────────────────┤
   ├─ UCASE-function ───────────────────────────┤
   ├─ UPPER-function ───────────────────────────┤
   ├─ USER-function ────────────────────────────┤
   ├─ VALUE-function ───────────────────────────┤
   ├─ VARGRAPHIC-function───────────────────────┤
   ├─ WEEK-function ────────────────────────────┤
   ├─ XMLPOINTER-function───────────────────────┤
   ├─ XMLSERIALIZE-function─────────────────────┤
   └─ YEAR-function ────────────────────────────┘
Parameters
user-defined-function

Specifies to invoke a user-defined function. See Expansion of User-defined-function, for more information about expanded user-defined-function syntax.

The remaining parameters are used to invoke a CA IDMS scalar function.

Note: For more information about the CA-supplied scalar functions, see CA IDMS Scalar Functions.

Usage

Built-in Versus User-Defined Functions

The scalar functions that are provided by CA IDMS are implemented as built-in functions or user-defined functions. Built-in functions are not defined in the dictionary. The user-defined functions provided by CA IDMS are defined in the SYSCA schema during installation.

How a function is implemented is significant for two reasons:

Note: For more information about how to determine the implementation of a CA IDMS supplied scalar function, see CA IDMS Scalar Functions.

More information:

CA IDMS Scalar Functions