Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Aggregator transformation
  6. Cleanse transformation
  7. Data Masking transformation
  8. Data Services transformation
  9. Deduplicate transformation
  10. Expression transformation
  11. Filter transformation
  12. Hierarchy Builder transformation
  13. Hierarchy Parser transformation
  14. Hierarchy Processor transformation
  15. Input transformation
  16. Java transformation
  17. Java transformation API reference
  18. Joiner transformation
  19. Labeler transformation
  20. Lookup transformation
  21. Machine Learning transformation
  22. Mapplet transformation
  23. Normalizer transformation
  24. Output transformation
  25. Parse transformation
  26. Python transformation
  27. Rank transformation
  28. Router transformation
  29. Rule Specification transformation
  30. Sequence Generator transformation
  31. Sorter transformation
  32. SQL transformation
  33. Structure Parser transformation
  34. Transaction Control transformation
  35. Union transformation
  36. Velocity transformation
  37. Verifier transformation
  38. Web Services transformation

Transformations

Transformations

Sequence Generator output fields

Sequence Generator output fields

The Sequence Generator transformation has two output fields, NEXTVAL and CURRVAL.
In advanced mode, the transformation has one output field, NEXTVAL.
You cannot edit or delete these fields.
You can connect a Sequence Generator transformation to any transformation. If the mapping contains both fields, you do not need to map both of the output fields. If you do not map one of the output fields, the
mapping
task ignores the unmapped field.

NEXTVAL field

Use the NEXTVAL field to generate a sequence of numbers based on the Initial Value and Increment By properties.
Map the NEXTVAL field to an input field in a Target transformation or other downstream transformation to generate a sequence of numbers. If you do not configure the Sequence Generator to cycle through the sequence, the NEXTVAL field generates sequence numbers up to the configured End Value.
If you map the NEXTVAL field to multiple transformations, the
mapping
task generates the same sequence or a unique sequence of numbers for each downstream transformation based on the mapping type and whether incoming fields are disabled.
The following table lists the situations where the Sequence Generator transformation generates the same sequence or a unique sequence of numbers:
Mapping type
Incoming fields are...
Same sequence or unique sequence?
Mapping
Not disabled
Same sequence
Mapping
Disabled
Unique sequence*
Mapping (Advanced Mode)
-
Same sequence
*
To generate the same sequence of numbers when incoming fields are disabled, you can place an Expression transformation between the Sequence Generator and the transformations to stage the sequence of numbers.

CURRVAL field

The CURRVAL field value is the NEXTVAL value plus the Increment By value. For example, if the Initial Value is 1 and Increment By is 1, the
mapping
task generates the following values for NEXTVAL and CURRVAL:
NEXTVAL
CURRVAL
1
2
2
3
3
4
4
5
5
6
Typically, you map the CURRVAL field when the NEXTVAL field is already mapped to a downstream transformation in the map. If you map the CURRVAL field without mapping the NEXTVAL field, the
mapping
task generates the same number for each row.

0 COMMENTS

We’d like to hear from you!