Page 1 of 1

Converting EBCDIC TEXT FILE TO ASCII TEXT FILE

PostPosted: Wed Mar 20, 2019 9:59 pm
by SMRAO123
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

Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE

PostPosted: Wed Mar 20, 2019 10:58 pm
by Terry Heinze
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.

Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE

PostPosted: Wed Mar 20, 2019 11:02 pm
by SMRAO123
EBCDIC file is a text file

Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE

PostPosted: Thu Mar 21, 2019 12:28 am
by Robert Sample
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.

Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE

PostPosted: Thu Mar 21, 2019 1:57 pm
by Garry F Carroll
If both ASCII and EBCDIC text datasets are on z/OS, you might use your SORT product with the TRAN=ETOA parameter.

Garry