string1 The first argument, of type string, is the string for which %LOCATE searches. string2 The second argument, of type string, is the string in which the search is performed.