Suppose a sentence is "How is Kunal", how to find the starting position of word Kunal in that sentence using RPGLE.
You don't say what you've tried..
But seems that %SCAN() would work
dcl-s myString varchar(50);
dcl-s posFound int(5);
myString = 'How is Kunal';
pos = %scan('Kunal':myString);
if pos > 0;
//found it
endif;