Very late to the game, but could you use one of the new vector string instructions? Possibly a combination of VECTOR FIND ELEMENT EQUAL and VECTOR STRING RANGE COMPARE. I've done nothing with this (yet), so I can't provide any answers or advice.

You would have to be z13 or better to open.

On 2018-03-14 08:51, Charles Mills wrote:
1.       Is there a machine instruction that will find one string within
another? That given "Now is the time" and "is" would find the "is" and
return a pointer to it? A machine instruction analog of Rexx POS?

2.       Searching the PoOp for such an instruction led me to CUSE. It does
not seem that CUSE could be used for this - is that correct? If I am reading
CUSE correctly, then given "Now is the time", "All is well" and 2 or 3 would
return the position of "is". Is my reading correct? What would that be good
for? What would be a reasonable real-world use?

Thanks,

Charles


--
M. Ray Mullins
Roseville, CA, USA
http://www.catherdersoftware.com/
http://www.z390.org/

German is essentially a form of assembly language consisting entirely of far 
calls heavily accented with throaty guttural sounds. ---ilvi
French is essentially German with messed-up pronunciation and spelling.  
--Robert B Wilson
English is essentially French converted to 7-bit ASCII.  ---Christophe Pierret 
[for Alain LaBonté]

Reply via email to