Similar to the SEARCH function with a few differences.
SEARCHR(x,y,z)
SEARCHR does the same as SEARCH, i.e. it returns the first position in a string where a character or bit of another string appears. However, there are a few differences between them. With SEARCHR search is done from right to left and the default value for z is LENGTH(x).
The precision of the result is determined by the -bifprec compiler option.
dcl s char (16); dcl i fixed bin (15); s = 'Newbury, England'; i = searchr (s, 'ry'); /* i = 7, ‘y’ found starting from the right */
None.