Monetary fields tend to have the finny characters in known positions,
commas (or periods)every third position. The decimal point (period or
comma) also is in a fixed position.All these are in fixed positions
relative to the least significant digit of the amount.

----- Original Message -----
From: "IBM Mainframe Assembler List" 
To:
Cc:
Sent:Sat, 22 Oct 2016 14:46:47 -0600
Subject:Re: converting character to packed

 On 2016-10-18, at 13:19, Tony Harminc wrote:

 > On 18 October 2016 at 02:34,  wrote:
 >> Using TR in a different way omits the commas and decimal point,
sign,
 >> and any other funny characters.
 >> To do this, you swap the roles of the translate table and the
string
 >> being translated.
 > 
 > This was the classic way to reverse a string, long before the
 > existence of the MVCIN instruction.
 > 
 That can rearrange characters in a string and even eliminate "funny"
 characters, but I believe you need to know a priori where the funny
 characters are to omit their positions from the string being
translated.

 -- gil
Email sent using Dodo Webmail

Reply via email to