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:
Is this the correct approach.
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.