It all depends on the application requirements; it the data has been previously
edited/verified to ensure that it conforms to the described pattern, then it is
most efficient to rely on that verification particularly if the packing routine
is heavily used. If the input is directly from a
The TR command would leave all the non-numeric characters in the data,
translated as you specified, so you'd have to have a technique to pass through
the result to remove them. A TRT instruction would help you find the
non-numeric characters, but in this case it would be considerably slower
since it was my original question and thanks for all of the suggestions, the
data input was manual into a 20 byte character field including $ signs, commas,
and periods (ex. $13,532,908.01) and I am trying to convert to pack decimal for
additional reporting on a zOS MVS machine.
Won't a TR followed by a PACK do this?
- Original Message -
From: "IBM Mainframe Assembler List"
To:
Cc:
Sent:Mon, 17 Oct 2016 15:04:52 -0400
Subject:Re: converting character to packed
since it was my original question and thanks for all of the
suggestions, the data input was manual