The size is constant, and is known at compile time.

If the size is 1 to 4,096 bytes then you get a series of MVCs, not a loop.

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Paul Gilmartin
Sent: Thursday, October 31, 2024 5:19 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Bounded string move?

On Thu, 31 Oct 2024 22:04:18 +0000, Schmitt, Michael wrote:

>Correction: as we can see from the example I posted, when generating a MVC 
>loop, it ALWAYS generates one more MVC at the end, even if the size of the 
>field is evenly divisible by 256.
>
>For example, to move 77,824 bytes it could have looped 304 times with nothing 
>left over. Instead it looped 303 times, then did another MVC of 256 bytes.
>
Is the size a constant or a variable?

That may avoid treating the multiple-of-256 (considered unlikely?) as
a special case.

If the size is 256 bytes or less, does it execute the loop zero times then
then move the rest at the end?

--
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to