MOD - connect_cdc_sqdata - Latest

Connect CDC (SQData) Apply engine

Product type
Software
Portfolio
Integrate
Product family
Connect
Product
Connect > Connect CDC (SQData)
Version
Latest
Language
English
Product name
Connect CDC (SQData)
Title
Connect CDC (SQData) Apply engine
Copyright
2024
First publish date
2000
ft:lastEdition
2024-07-30
ft:lastPublication
2024-07-30T20:19:56.898694

The MOD function returns the Integer remainder after dividing one number by another (the modulus).

Category

Mathematical

Syntax

MOD(data_element, variable_name | constant)

Parameters and Descriptions

Parameter Description
data_element A field/column within a source datastore or Cursor results. Data_element_1 is also referred to as the dividend.
variable_name | constant This parameter specifies a variable or constant, also referred to as the divisor, that will be divided into data_element to calculate a remainder.

Example

Find the database partition number for a 10 partition database numbered 0-9 using the customer number CUST_NUM and map the result to the target field PARTITION_NUM. Assume that the CUST_NUM is 1234567.

PARTITION_NUM = MOD (CUST_NUM, 10)

Returns the value 7 and maps it to the target field.