**DISTRIBUTE(***recordset * **[, UNORDERED | ORDERED(** *bool
***) ] [, STABLE | UNSTABLE ] [, PARALLEL [
(** *numthreads ***) ] ] [,
ALGORITHM(** *name ***) ]
)**

**DISTRIBUTE(***recordset,
expression *** [ ,
MERGE(**

**DISTRIBUTE(***recordset, index
***[***, joincondition
***] ****[,
UNORDERED | ORDERED(** *bool ***) ] [, STABLE | UNSTABLE ] [, PARALLEL [ (**
*numthreads ***) ] ] [,
ALGORITHM(** *name ***) ]
)**

**DISTRIBUTE(***recordset,
*** SKEW(*** maxskew ***[***, skewlimit*** ] ) ****[, UNORDERED |
ORDERED(** *bool ***) ] [,
STABLE | UNSTABLE ] [, PARALLEL [ (** *numthreads
***) ] ] [, ALGORITHM(**
*name ***) ] )**

recordset | The set of records to distribute. |

expression | An integer expression that specifies how to distribute the recordset, usually using one the HASH functions for efficiency. |

MERGE | Specifies the data is redistributed maintaining the local sort order on each node. |

sorts | The sort expressions by which the data has been locally sorted. |

index | The name of an INDEX attribute definition, which provides the appropriate distribution. |

joincondition | Optional. A logical expression that specifies how to link the records in the recordset and the index. The keywords LEFT and RIGHT may be used as dataset qualifiers for fields in the recordset and index. |

SKEW | Specifies the allowable data skew values. |

maxskew | A value between zero (0) and one (1.0 = 100%) indicating the maximum percentage of skew to allow before the job fails (the default skew is 1.0 / <number of worker nodes on cluster>). |

skewlimit | Optional. A value between zero (0) and one (1.0 = 100%) indicating the desired maximum percentage of skew to allow (the default skew is 1.0 / <number of worker nodes on cluster>). |

UNORDERED | Optional. Specifies the output record order is not significant. |

ORDERED | Specifies the significance of the output record order. |

bool | When False, specifies the output record order is not significant. When True, specifies the default output record order. |

STABLE | Optional. Specifies the input record order is significant. |

UNSTABLE | Optional. Specifies the input record order is not significant. |

PARALLEL | Optional. Try to evaluate this activity in parallel. |

numthreads | Optional. Try to evaluate this activity using
numthreads threads. |

ALGORITHM | Optional. Override the algorithm used for this activity. |

name | The algorithm to use for this activity. Must be from the list of supported algorithms for the SORT function's STABLE and UNSTABLE options. |

Return: | DISTRIBUTE returns a set of records. |

The **DISTRIBUTE** function
re-distributes records from the *recordset* across all
the nodes of the cluster.