This method is used to search for the first occurrence of a string in another string.
string − The string value that needs to be searched for.
phrase − This is the value that needs to be searched for in the string.
The method returns the word number of the first word of phrase in string.
/* Main program */ options arexx_bifs say find(' Hello World ','World')
When we run the above program we will get the following result.