At 17:56 +1100 on 10/08/2010, robin wrote about Re: TRT:

Quite useful if desiring to remove trailing blanks from a record.
This was done in the days of punch cards, in order to speed up
data transfers to/from disk, and to reduce disk storage requirements.
Alas, in those days, there was no TRTR instruction.

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.

Reply via email to