SUBSTR returns the number of characters specified in the third argument (starting from the position specified in the second argument) from the string specified in the first argument.
Refer to "9.2.1 Notes on SUBSTR" for details on precautions when using SUBSTR.