I'm not clear on the difference between TR and TROO, even after reading the
PofOp. Anyone got a good explanation?

On Wed, Apr 12, 2017 at 9:14 AM, John McKown <[email protected]>
wrote:

> On Wed, Apr 12, 2017 at 7:58 AM, Avram Friedman <
> [email protected]
> > wrote:
>
> > There are 2 problems with multiable encoding methods
> > 1.  Display S360+ has special hardware support for converting binary /
> > decimal to/from  display EBCDIC.   Any other encoding for display is roll
> > your own.
> > 2. Compares of hetrogenious data is not supported by hardware  "0" ebcdic
> > does not equal "0" ascii
> > S360 has always had an instruction  to facilitate conversion from one
> > encoding method to another.  The instruction is called TRANSLATE.
> > Translate however requires a code table which is 256 bytes long.  The
> > value of BYTE x is used as an index to the table which has the translated
> > value for X at that location.   The problems are
> > a. it is a user provided table
> > b only supports single byte characters.
> >
> > Unicode services is ment to provided some standardization of this via
> > software.
> > It should be noted that the conversion is complicated by hardware
> > as the encoding required by software (so compares work) may be different
> > than those required by I/O devices such as ASCII terminials.
> >
>
> ​z/OS has UNICODE System Services to "help" with this sort of thing.
> https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.
> 0/com.ibm.zos.v2r2.cunu100/toc.htm
>
> Also, the currently hardware has a lot more translate instructions beyond
> "TR". There is "TROO" (Translate One to One); "TROT" (Translate One to
> Two); "TRTO" (Translate Two to One); and "TRTT" (Translate Two to Two).
>
>
> > Avram Friedman
> >
> >
> --
> "Irrigation of the land with seawater desalinated by fusion power is
> ancient. It's called 'rain'." -- Michael McClary, in alt.fusion
>
> Maranatha! <><
> John McKown
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>



-- 
zMan -- "I've got a mainframe and I'm not afraid to use it"

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to