Converting EBCDIC TEXT FILE TO ASCII TEXT FILE



Discuss about all tools related to Mainframes but usable in a PC/Computer like Mainframe Simulators, Emulators, Abend Assist etc...

Converting EBCDIC TEXT FILE TO ASCII TEXT FILE

Postby SMRAO123 » Wed Mar 20, 2019 9:59 pm

Hi I have a EBCDIC text file and this needs to be converted into ASCII format. Pls let me know how can it be done. Thanks
SMRAO123
 
Posts: 12
Joined: Thu Oct 28, 2010 12:00 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE

Postby Terry Heinze » Wed Mar 20, 2019 10:58 pm

If your EBCDIC data set is on your mainframe and your ASCII file is on a PC, your emulator might have a file transfer option that will automatically convert it for you.
.... Terry
Terry Heinze
 
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE

Postby SMRAO123 » Wed Mar 20, 2019 11:02 pm

EBCDIC file is a text file
SMRAO123
 
Posts: 12
Joined: Thu Oct 28, 2010 12:00 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE

Postby Robert Sample » Thu Mar 21, 2019 12:28 am

You are not at all clear about what you want. Questions you haven't answered:
Is the EBCDIC text file on a z/OS or z/VM system?
Is the ASCII text file going to be on a z/OS or z/VM system?
If the EBCDIC text file in Unix System Services or a native z/OS data set?
Is the ASCII text file, assuming it will be on a z/OS or z/VM system, going to be in Unix System Services or a native z/OS data set?
If either is NOT on the z/OS or z/VM system, but the other will be on the z/OS or z/VM system, how will you be getting the data from system to system?

In general, on a z/OS system you will use the Unix System Services command iconv to convert from EBCDIC to ASCII or vice versa (which way the conversion goes depends upon the specific options used with the iconv command). If this is what you want to do, look up iconv in the Unix System Services Commands manual available through the IBM web site.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE

Postby Garry F Carroll » Thu Mar 21, 2019 1:57 pm

If both ASCII and EBCDIC text datasets are on z/OS, you might use your SORT product with the TRAN=ETOA parameter.

Garry
Garry F Carroll
 
Posts: 28
Joined: Wed Sep 19, 2018 8:20 pm
Has thanked: 0 time
Been thanked: 1 time


Return to Simulators & Emulators

 


  • Related topics
    Replies
    Views
    Last post