On 10/9/2010 5:25 PM, Robert A. Rosenberg wrote:
As I commented in a prior reply, you can use a TR (or later a MVCI) to reverse the order of the bytes (while copying into a workarea). Then using a TRT on the work area finds the last non-blank and you can then use the location to find the offset into the original version. This was, I think, the method used by HASP and JES2 to reduce print line lengths by stripping the trailing blanks.
IIRC, this came up in a thread last year. HASP uses a word compare, and in a number of tests that came out faster than various alternatives, both with S/360 and S/370 instructions. Gerhard Postpischil Bradford, VT
