On 11/30/2010 10:34 PM, Jim Phoenix wrote:
Mike Schwab wrote:
On Tue, Nov 30, 2010 at 7:01 PM, Wayne Bickerdike <[email protected]> wrote:
<deleted>
My same source related the tale of a person in same bank who received
an EBCDIC file, opened it in Windows and saved it back as ASCII. The
file was duly transferred for processing on the mainframe. Most of the
packed data was garbaged ......
Oh my, dumb and dumber....
Here is an idea to bounce around. z/OS Unix System Services does a
lot of work converting ASCII to EBCDIC and back. z/Linux works all in
ASCII. Why not get 4 new instructions that work with PD<=> ASCII like
the PD <=> EBCDIC instructions PACK, UNPK, ED, EDMK, but with an A
suffix to denote ASCII character. Conversion from Packed to binary
would be the same. Assembler would get new instructions. z/OS would
need to know if a file was ASCII for proper translation when printing
it.
Mike,
Introduced with the z900 were the PKA (Pack ASCII), PKU (Pack Unicode), UNPKA
(Unpack ASCII), and UNPKU (Unpack Unicode) instructions.
These instructions, along with TP (TestPacked: set condition code
to indicate if a memory location contains valid packed decimal
data) are part of the "extended-translation facility 2" and supported
in z/OS 1.2 on.
Our course "z/OS Assembler Programming Part 4: z/Architecture and z/OS"
includes a discusion of all the non-privileged, non-floating-point
instructions introduced with z/Architecture, including the new
hardware instructions on the z9, z10, and z186 machines.
One lab includes using PKA, PKU, and TP instructions.
And, tying back to another thread, a different lab includes writing
code to run in AMODE64.
See this link for details:
http://www.trainersfriend.com/Assembler_%20courses/C500descrpt.htm
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
* To get a good Return on your Investment, first make an investment!
+ Training your people is an excellent investment
* Try our new tool for calculating your Return On Investment
for training dollars at
http://www.trainersfriend.com/ROI/roi.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html