Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

All Other Mainframe Topics :: RE: EBCDIC to ASCII conversion using OCOPY

$
0
0
Author: mistah kurtz
Posted: Tue Sep 06, 2016 5:10 pm (GMT 5.5)

Thanks Robert. I found the iconv command.

What I understood from the above link that it will convert the characters set from one code set to another.

I have created a file in mainframe with 256 byte ( from X'00' to X'FF'). And the output should be converted to ASCII using the code table: 1047, 037 and 500.

So what should I do:
1. FTP the file from Mainframe to UNIX in binary mode.
2. Then to convert it into ASCII, I should use the following command in UNIX:
Code:
iconv –t IBM-1047 EBCDIC.DATA > ASCII.1047.DATA

Is this the correct approach.


Viewing all articles
Browse latest Browse all 8500

Trending Articles