DML functions: EDI

The following function is available:

generateNextIdInSequence

generateNextIdInSequence Comment

Description

generateNextIdInSequence returns the identifier found in the unique ID fileA unique identifier file consists of lines containing four fields: sequence / id-length / num-base / id. The fields follow immediately after each other; no separator or space character separates them. This file must not contain empty lines. The sequence field is a string with 10 characters containing the sequence. This field is case sensitive. If it contains trailing spaces, these spaces do not have to be given when referring to the sequence. for the specified sequence and increments the identifier in the unique ID file.

Syntax

generateNextIdInSequence (sequence, Id file)

Return

String

Parameters

sequence (String): sequence

Id file (String): complete name of unique Id file

A unique identifier file consists of lines containing four fields:

The fields follow immediately after each other; no separator or space character separates them.

This file must not contain empty lines. The sequence field is a string with 10 characters containing the sequence. This field is case sensitive. If the field contains trailing spaces, these spaces do not have to be given when referring to the sequence.

Example

generateNextIdInSequence("DEFAULT", "/integrator/unique/uniqueid") returns 18.

Related Links