Converting EBCDIC TEXT FILE TO ASCII TEXT FILE
-
- Posts: 12
- Joined: Thu Oct 28, 2010 12:00 pm
- Skillset: COBOL,JCL,DB2,CICS,SORT
- Referer: INTERNET
Converting EBCDIC TEXT FILE TO ASCII TEXT FILE
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
-
- Posts: 239
- Joined: Wed Dec 04, 2013 11:08 pm
- Skillset: COBOL, JCL, ISPF.
- Referer: While searching the Internet for answers.
- Location: Richfield, MN, USA
Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE
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
-
- Posts: 12
- Joined: Thu Oct 28, 2010 12:00 pm
- Skillset: COBOL,JCL,DB2,CICS,SORT
- Referer: INTERNET
Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE
EBCDIC file is a text file
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE
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.
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.
-
- Posts: 28
- Joined: Wed Sep 19, 2018 8:20 pm
- Skillset: CICS, HLASM, DFSORT, REXX, PL/1
- Referer: Self-referred
Re: Converting EBCDIC TEXT FILE TO ASCII TEXT FILE
If both ASCII and EBCDIC text datasets are on z/OS, you might use your SORT product with the TRAN=ETOA parameter.
Garry
Garry
-
- Similar Topics
- Replies
- Views
- Last post
-
-
How to use ASCII condition in DFSORT
by Prasanna G » Tue Sep 20, 2022 10:15 pm » in DFSORT/ICETOOL/ICEGENER - 10
- 2480
-
by prino
View the latest post
Thu Sep 22, 2022 12:53 am
-
-
-
EZIOE004 Logical I/O error on file occurred reading VB file
by savitha_y » Mon Feb 15, 2021 7:54 pm » in CA-Easytrieve - 3
- 4946
-
by savitha_y
View the latest post
Wed Feb 17, 2021 5:02 am
-
-
-
Transfering ASCII files to z/OS USS using Connect Direct
by golemis » Sun Feb 21, 2021 2:24 pm » in All other Mainframe Topics - 1
- 6814
-
by golemis
View the latest post
Mon Feb 22, 2021 6:32 pm
-
-
-
File Handling 3 input files and 1 output file by using EZT
by pavan426 » Thu Sep 09, 2021 12:17 am » in CA-Easytrieve - 0
- 4409
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-
-
-
Need to check whether file is ESDS file or not by using REXX
by Devrana » Sat Oct 05, 2024 2:28 pm » in CLIST & REXX - 6
- 3027
-
by sergeyken
View the latest post
Tue Oct 08, 2024 5:25 pm
-