To use a Sequence Generator transformation in a mapping, add it to the mapping, configure the transformation properties, and then connect NEXTVAL to one or more transformations.
In the mapping editor, scroll down in the mapping palette to locate the Sequence Generator transformation and drag it to the mapping.
The
New Transformations
wizard opens.
Enter a name for the Sequence Generator transformation.
The naming convention for Sequence Generator transformations is SEQ_<transformation name>.
Choose to create a new sequence or to use an existing Sequence object.
To create a new sequence, select
Create a new sequence
. Click
Next
to configure the sequence properties. The following image shows the properties that you can configure:
To use an existing Sequence object, select
Choose an existing Sequence object
. Navigate to the Sequence object and click
OK
.
The Sequence Generator transformation appears in the mapping editor with a NEXTVAL output-only port. You can connect the NEXTVAL port to a downstream transformation or target to generate a sequence of numbers.