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