I don't recall seeing "at same offset" in the PoOps. I'll double check and, if 
appropriate, send an RCF.


--
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 12:33 PM
To: [email protected]
Subject: Re: Two string instruction questions

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://secure-web.cisco.com/1WeuX5IJkM54cWmI1-Adusi3_Nq8j51SDdDLcRonfztzRjOX28BXK1MAPxpEsFAMZIDKNnI4j3eAapp7ZCXFFLowlGR4QELy_XfzSMfnlTu91jY4TregKNiwgho-lesmjaQqWG3f-10JrcjjEhUy4sgyaunS6nf0_sPzuA1WLqpSUejPNNOTm05OLGFLvF3EViDTtGBGZRzeZS8Hf-JJ9xKB5dlcgZZ3HoYOwGqpYufVEVEeZQNPKp4VnqEV46JslqlGRaYcoY7uCpeEaUjexO-rNwAIjyzYyYqJGm-Wsm68PaokfRTsCL0b-AqME36O1RMFmzC9VltFF3hEQh7u4Ynbiyl_wX5py-E07slzlwfFjp94Ij-l0UxD8izoO7Q6VIOfS6NpOSSJKIXBSTlEV9yQ73f6Et3Qn2_rc69Gqa0cNTpcfQizBt2kFl2inBN7B/http%3A%2F%2Fibmmainframes.com%2Fabout23525.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