11-12-2010
yes, I used this command, unfortunately for client's input file, output is not in proper ASCII format. File is not readable.
However this command works fine for all input file which I created myself.
do you have any other way to generate from EBCDIC to ASCII file?
iconv command is not supported on Solaris machine.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I need a program for ascii to ebsdic conversion. If anybody can help, it'll be greatly appreciated.
Thanks. (1 Reply)
Discussion started by: er_ashu
1 Replies
2. UNIX for Dummies Questions & Answers
when i try to convert a mainframe EBCDIC file to ASCII ,i dont see correct file this is the source file
... (3 Replies)
Discussion started by: venkatvelpula
3 Replies
3. Shell Programming and Scripting
Hi,
I have got a library file, created by compiling C code. The file information with "file" command, gives it a "application/x-archive" type file. I want to extract the release string of my software from this file, so that i can know which version of C files were used to create the lib.
Can... (3 Replies)
Discussion started by: atulmt
3 Replies
4. UNIX for Advanced & Expert Users
Hi,
I want to convert ebcdic values to ascii values. Are there anyany specific c++ libraries with g++ compiler, which can do it ?
gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) (0 Replies)
Discussion started by: tostay2003
0 Replies
5. UNIX for Dummies Questions & Answers
Hi All ,
I have a mainframe file which contains the data in EBCDIC unreadable format.I have downloaded this raw unreadable file from mainframe system to windows in text format then I pushed to Unix system.Now I want to convert this file to ASCII readable format file in unix.Can anyone advise me... (2 Replies)
Discussion started by: STCET22
2 Replies
6. Shell Programming and Scripting
Hi All ,
I have a mainframe file which contains the data in EBCDIC format.I have downloaded this file from mainframe to windows in binary format(unreadable raw data).Now I want convert this file to ASCII format(readable format data) through Unix command.I have tried iconv but that is not working... (2 Replies)
Discussion started by: STCET22
2 Replies
7. UNIX for Advanced & Expert Users
I have a file in my Unix ( SOLARIS ) with EBCDIC format...I want this file to read in ASCII OR unicode...Is it possible with UNIX to convert this file on ASCII OR UNICODE format from EBCDIC format?
I was searching through web and found only conversion table :(
Request Rejected
Below is... (16 Replies)
Discussion started by: joshilalit2004
16 Replies
8. Shell Programming and Scripting
Hi All ,
We have a mainframe file which is in EBCDIC format.We dont have direct access to mainframe ,client has provided us the mainframe file in unix box.The mainframe file is containing pact data(COMP1 ,COMP2 etc) which are unreadble.Can anyone suggest me how to convert this kind of ebcdic... (7 Replies)
Discussion started by: STCET22
7 Replies
9. UNIX for Advanced & Expert Users
Hi,
I have a input file which is EBCIDIC and it has packed decimals.
Can anyone help me to convert EBCIDIC file to ASCII(Need to convert even Packed decimal values also to normal format).
Thanks
swapna (12 Replies)
Discussion started by: swapna_1990
12 Replies
10. UNIX for Advanced & Expert Users
Hi,
We have a mainframe file which is in EBCDIC format.We dont have direct access to mainframe ,client has provided us the mainframe file.The mainframe file is containing pact data(COMP1 ,COMP2 etc) which are unreadble.Can anyone suggest me how to convert this kind of ebcdic file to ascii... (11 Replies)
Discussion started by: swapna_1990
11 Replies
iconv(1) General Commands Manual iconv(1)
Name
iconv - international codeset conversion
Syntax
iconv [-d] -f fromcodeset -t tocodeset [file...]
Description
The command converts the encoding of characters in its input from one codeset to another codeset. The fromcodeset argument specifies the
codeset used to encode the data in the input; that is, it specifies the input codeset. The tocodeset argument specifies the codeset to
which you want the input data converted; that is, it specifies the output codeset. The command performs the conversion by reading rules
from a conversion table you create. The command reads its input from standard input or from one or more files named on the command line.
The command writes its output to standard output.
You define conversion rules in a conversion table. The conversion rules specify how converts a particular character or group of characters,
which are called tokens. The conversion table is a text file that contains two lists. In the left-hand list, you specify each token you
want to convert. In the right-hand list, you specify the token you want to create in the output file. For example, if you issued the fol-
lowing command:
% iconv -fupper -tlower conversion_file
This command uses the conversion table located in the file that specifies how to convert from an uppercase codeset to a lowercase codeset.
The following shows part of the conversion table:
#
# Converts from uppercase to lowercase
#
# Input token Output token
# ------------- ------------------
A a
B b
C c
D d
E e
F f
G g
.
.
.
Z z
#
# Convert tabs to spaces using octal
#
11 40 40 40
#
# Convert the A umlaut to lowercase
#
A a
Each line in the conversion table must contain two strings, an input token and an output token. The tokens must be delimited with spaces
or tabs. The backslash character ( ) either causes the command to recognize a character it normally ignores or introduces a three digit
octal constant. All octal constants in the conversion table must contain three digits. Lines that begin with a hash symbol (#) are com-
ments. The command ignores comment lines and blank lines.
You name the conversion table file using the name of the input codeset, an underscore, and the name of the output codeset. For example, if
your input codeset is ISO646 and your output codeset is ISO8859, you might name the conversion table file
The command searches for the conversion table file in the directory specified by the pathname. If the ${ICONV} environment variable is
undefined, the command searches the directory.
The operation of the command is 8-bit transparent.
Options
-d Deletes any characters that are omitted from the conversion table. By default, the command sends characters that are omitted to the
output file without modifying them.
-f Specifies the name of the input codeset.
-t Specifies the name of the output codeset.
Restrictions
The conversion table file name can contain no more than 255 characters. You may need to truncate the name of the input codeset or output
codeset when you name the conversion table file.
Examples
The following shows an example of using the command:
This command converts the data in from ISO646 encoding to ISO8859 encoding. The command reads the conversion table from the file. If the
${ICONV} environment variable is undefined, the command uses the file. If that file does not exist, the command issues an error message and
does not convert the data file. The command writes the results of any conversion it performs to the file
Files
See Also
environ(5int)
Guide to Developing International Software
iconv(1)