EBCDIC to ASCII Binary conversion issue on Solaris i-series Unix


 
Thread Tools Search this Thread
Operating Systems Solaris EBCDIC to ASCII Binary conversion issue on Solaris i-series Unix
# 1  
Old 11-12-2010
EBCDIC to ASCII Binary conversion issue on Solaris i-series Unix

Hi All,

I am facing EBCDIC to ASCII Binary conversion on Solaris i-series Unix system.
However this is working fine on Solaris Sparc Unix system.
Input file having EBCDIC format does not work on Solaris i-series Unix system.
Could you please tell me, what will be the root cause for same?
# 2  
Old 11-12-2010
"Solaris i-series Unix system" ?
# 3  
Old 11-12-2010
Maybe O/P means IBM iSeries server range (some of which can run Solaris).

There is not enough information to guess what the problem is though.
# 4  
Old 11-12-2010
I am working on one application, which basically take input file in EBCDIC file format, application parse the input file into ASCII file format. and hence output is readable to user.
I have two Solaris Unix setups, one is Solaris Sparc whereas other one is Solaris i386.
I am able to parse input file on Sparc Unix , however similar is not possible on i386 Unix server.
As I have executable file on Sparc Machine and hence i need to re execute code on i386 too. There is no compilation error on i386.

I am not sure about the issue, however I think, issue is with input file format ie EBCDIC. I Mean... EBCDIC file format which is generated on Sparc Solaris Unix Machine is not compatible with i386 Solaris Machine, and hence it gives me Memory Block reading issue on i386.
I need solution on same, what to do for this type of situation?
Thanks in Advance.
# 5  
Old 11-12-2010
Have you tried converting the file using dd? Eg.
Code:
dd if=ebcdic.file of=ascii.file conv=ascii

# 6  
Old 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.
# 7  
Old 11-12-2010
Quote:
iconv command is not supported on Solaris machine.
Are you sure about this?


What precise version of Solaris are you running on each computer?

What software did you use which worked on the Sparc system?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

EBCDIC to ASCII conversion

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

2. UNIX for Advanced & Expert Users

EBCDIC to ASCII conversion

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

3. Shell Programming and Scripting

Need help for EBCDIC TO ASCII conversion through UNIX

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

4. UNIX for Advanced & Expert Users

Conversion from EBCDIC to Ascii OR unicode

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

5. Shell Programming and Scripting

File conversion from Binary to ASCII though UNIX command

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

6. UNIX for Dummies Questions & Answers

EBCDIC TO ASCII Conversion through UNIX Command

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

7. UNIX for Advanced & Expert Users

Conversion of data - ebcdic to ascii

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

8. Shell Programming and Scripting

binary to ascii conversion

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

9. UNIX for Dummies Questions & Answers

Conversion from EBCDIC to ASCII

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

10. Shell Programming and Scripting

ascii to ebcdic conversion

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
Login or Register to Ask a Question