EBCDIC to ASCII conversion

EBCDIC to ASCII conversion

Post by Steve Chian » Tue, 03 Nov 1998 04:00:00



Hi. Does anyone know a tool out there that can convert "packed" EBCDIC
data file
into ASCII ? I'm receiving this data from MVS, and doing the conversion
on Solaris 2.5.1. Any help provided would be greatly appreciated.
Thanks.

Steve

 
 
 

EBCDIC to ASCII conversion

Post by Christopher Gree » Tue, 03 Nov 1998 04:00:00



> Hi. Does anyone know a tool out there that can convert "packed" EBCDIC
> data file
> into ASCII ? I'm receiving this data from MVS, and doing the conversion
> on Solaris 2.5.1. Any help provided would be greatly appreciated.
> Thanks.

> Steve

The utility "dd" does EBCDIC to ASCII conversion, with the argu-
ment conv=ascii (or possibly conv=ibm).  If you're converting
fixed-length records, such as card images, use cbs=N, where N
is the size of a record, to convert fixed-length to plain text.
Do "man dd" for more options and details.

--
Chris Green
Advanced Technology Center
Laguna Hills, California

 
 
 

EBCDIC to ASCII conversion

Post by Warren Porte » Wed, 04 Nov 1998 04:00:00


When you say "packed EBCDIC", do you mean the records contain packed
decimal, defined in COBOL as COMP-3?  If so, you might not want to convert
the entire record but only selected fields representing alphanumeric data
within the program that reads it.  If not, a utility like 'dd' can convert
it for you.

> Hi. Does anyone know a tool out there that can convert "packed" EBCDIC
> data file
> into ASCII ? I'm receiving this data from MVS, and doing the conversion
> on Solaris 2.5.1. Any help provided would be greatly appreciated.

 
 
 

EBCDIC to ASCII conversion

Post by Hemant Sha » Wed, 04 Nov 1998 04:00:00



:)Hi. Does anyone know a tool out there that can convert "packed" EBCDIC
:)data file
:)into ASCII ? I'm receiving this data from MVS, and doing the conversion
:)on Solaris 2.5.1. Any help provided would be greatly appreciated.
:)Thanks.

  If you data contains "packed" decimal, you have to write a custom
  program to convert the data.

:)Steve

--
Hemant Shah, LIDP Inc.                /-------------------\    ^~~~~^
 Voice: +1 630 960 0133 x 664         |TECHNOLOGY         |    |    |
   Fax: +1 630 960 0717               |No place for wimps |   o|-OO-|o

                                      \-------------------/    |    |
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind,                Above opinions are mine only.
it's backed up on tape somewhere.      Others can have their own.

 
 
 

EBCDIC to ASCII conversion

Post by Wolfgang Den » Wed, 04 Nov 1998 04:00:00



>Hi. Does anyone know a tool out there that can convert "packed" EBCDIC
>data file
>into ASCII ? I'm receiving this data from MVS, and doing the conversion
>on Solaris 2.5.1. Any help provided would be greatly appreciated.

Use `dd conv=ascii'. Youmay need to adjust the `ibs='  and/or  `cbs='
options to your exact packing format.

Wolfgang

--


ATTENTION: Despite Any Other Listing of Product Contents Found  Here-
on, the Consumer is Advised That, in Actuality, This Product Consists
Of 99.9999999999% Empty Space.

 
 
 

EBCDIC to ASCII conversion

Post by Andrew Rowl » Thu, 05 Nov 1998 04:00:00



>Hi. Does anyone know a tool out there that can convert "packed" EBCDIC
>data file
>into ASCII ? I'm receiving this data from MVS, and doing the conversion
>on Solaris 2.5.1. Any help provided would be greatly appreciated.

Packed decimal is really a binary data format used on MVS systems
rather than EBCDIC data as such. You can't translate it byte by byte
to ASCII. The translation process needs to know the layout of the
fields in the data.

It may be easier to output the data in EBCDIC text form on the MVS
system, as programs there have easy ways of dealing with packed data.
The size of the data will expand, but it will be much easier to
translate pure text data.

---
Andrew Rowley

 
 
 

1. dd EBCDIC to ASCII Conversion Problem

OS: AIX4.3.3 ML09

I am trying to read a tape [3490] created on an IBM OS/VS 370 in EBCDIC
using block size 7735 and record length 595.  When I use the following dd
command:

        dd if=/dev/rmt2 of=ascii.data conv=ascii ibs=7735 cbs=595

everything works fine until it encounters nulls (0x00) in the data
stream. When these occur, they are always at position 390 for a lngth of
20.  When the nulls are encountered, dd skips the remainder of the current
record and concatenates the following record, beginning in position 390
for a total of 990 bytes.

If I first read the data from tape to disk without the conversion:

        dd if=/dev/rmt2 of=data.ebcdic ibs=7735

and then convert using a second dd command:

        dd if=data.ebcdic of=data.ascii conv=ascii cbs=595

it works fine, handling the nulls as other data.

Has anyone observed this [peculiar] behavior and do you have a better way
of handling it?

Thank you,
Lucky

Lucky Leavell                  

2. Root as Peter Pan

3. EBCDIC to ASCII conversion program

4. xgraph-11 on rs6000

5. EBCDIC & ASCII Conversion Routines Needed

6. SUID problems

7. EBCDIC to ASCII Conversion

8. socket accept error! as select returns -1

9. EBCDIC -> ASCII conversion (addenda)

10. EBCDIC to ASCII conversion with packed fields

11. EBCDIC -> ASCII conversion

12. EBCDIC to ASCII conversion

13. EBCDIC -> ASCII conversion