© Copyright 2023, Astera Software
Example
In this example, we are passing the required parameters to the function transformation object using a Variables object.
Where,
str = ABCDEFGH
noOfChars = 3
Right-click on the function transformation object and select Preview Output. You can see that Astera Data Stack has returned a string of the specified noOfChars, from the right.
Name
Right
Syntax
String
Purpose
To get the rightmost noOfChars from the specified string.
Description
Returns rightmost noOfChars of string. If string is smaller than noOfChars, the entire string is returned.
Return Type
String
Parameters
Str [System.String] – String whose part will be returned
noOfChars [System.Int64] – Maximum number of characters to return