Won't the TRTRE stop at the first blank in the field? If so, it will stop at the right end, not at the "d". Maybe I've misread the pOps.
-----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of Blaicher, Christopher Y. Sent: Thursday, May 15, 2014 3:31 PM To: [email protected] Subject: Re: Right Justification Subroutine Using TRTRE makes it very simple. Build a TRT table with all bytes non-zero except the C' ' byte and execute the instruction. After the instruction R1 will point at the 'D' in field. TRTRE works right to left rather than left to right. TRTTABLE DC 256XL1'04' ORG TRTTABLE+C' ' DC XL1'00' ORG , Chris Blaicher Principal Software Engineer, Software Development Syncsort Incorporated 50 Tice Boulevard, Woodcliff Lake, NJ 07677 P: 201-930-8260 | M: 512-627-3803 E: [email protected]
