When used on the right-hand side of an expression, this function
returns the data pointed to by the first parameter up to but not including
the first null character (x'00') found within the length specified.
This built-in function can be used anywhere that a character expression
is valid. No error will be given at run time if the null terminator
is not found within the length specified. In this case, the length
of the resulting value is the same as the length specified.
Note:
The length specific for %STR always refers to the number of bytes.
The following is an example of %STR with the second parameter specified.
In this example, the null-terminator is found within the specified
maximum length.