I don't read it that way but I am less than certain of my interpretation.
Some CUSE examples in Appendix A would be nice, eh?

I tried Googling for that and got this which seems to support my
interpretation of CUSE:
http://ibmmainframes.com/about23525.html 

It also shares my "well then, what IS CUSE good for?"

FWIW, both of my stings are anticipated to be < 256 bytes.

Charles

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]]
On Behalf Of Seymour J Metz
Sent: Wednesday, March 14, 2018 9:22 AM
To: [email protected]
Subject: Re: Two string instruction questions

If your search string is less than 256 bytes then CUSE should work, if I am
reading th PoOps correctly. Set R0 to the length of the search string.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Assembler List <[email protected]> on
behalf of Charles Mills <[email protected]>
Sent: Wednesday, March 14, 2018 11:51 AM
To: [email protected]
Subject: Two string instruction questions

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?

Reply via email to