Calculates the starting position of the specified substring in the input character string.
1 – Input
This functions takes two parameters: a character string and a substring.
2 – Output
An unsigned integer. If the string is undefined, FN$STR_LOC returns the value 0.
3 – Example
DTR> DECLARE WOMBAT PIC X(25) DTR> WOMBAT = "Wombats have sharp claws." DTR> PRINT FN$STR_LOC (WOMBAT,"claws") FN$STR LOC 20 DTR>