Numeric routine
You can access the numeric routine functions by double-clicking the Numeric node under the system routines folder in the Repository tree view. The Numeric routine contains several functions, notably sequence, random and convertImpliedDecimalFormat.
Function |
Description |
Syntax |
---|---|---|
sequence |
Returns an incremental numeric ID. |
Numeric.sequence("Parameter name", start value, increment value) |
resetSequence |
Creates a sequence if it doesn't exist and attributes a new start value. |
Numeric.resetSequence (Sequence Identifier, start value) |
removeSequence |
Removes a sequence. |
Numeric.removeSequence (Sequence Identifier) |
random |
Returns a random whole number between the maximum and minimum values. |
Numeric.random(minimum start value, maximum end value) |
convertImpliedDecimalFormat |
Returns a decimal with the help of an implicit decimal model. |
Numeric.convertImpliedDecimalFormat ("Target Format", value to be converted) |
The three routines sequence, resetSequence, and removeSequence are closely related.
-
The sequence routine is used to create a sequence identifier, named s1 by default, in the Job. This sequence identifier is global in the Job.
-
The resetSequence routine can be used to initialize the value of the sequence identifier created by sequence routine.
-
The removeSequence routine is used to remove the sequence identifier from the global variable list in the Job.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!