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
# 8  
Old 11-12-2010
Quote:
Originally Posted by methyl
Maybe O/P means IBM iSeries server range (some of which can run Solaris).
They can't, Solaris isn't supported on Power5 CPUs.
# 9  
Old 11-12-2010
Please find system info as below for Solaris Sparc
# uname -a
SunOS PDCSD19Z1 5.8 Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise-T5120

# iconv
iconv: conversion from char unsupported
#
# 10  
Old 11-12-2010
@jlliagre Thanks. Though it was announced in 2001 I can't trace a real Solaris implementation. Must have been vapourware.
# 11  
Old 11-12-2010
Please find commands ran on Sparc Solaris System
# uname -a
SunOS PDCSD19Z1 5.8 Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise-T5120

# iconv
iconv: conversion from char unsupported
# 12  
Old 11-12-2010
Also, what exactly is your code doing?

You mention EBCDIC files being generated on SPARC Solaris, which simply wouldn't happen.

It seems more likely you're having problems with simply assuming the endianness of raw values. Are you writing data like binary int or long values directly into your files?
# 13  
Old 11-12-2010
What computer creates the EBCDIC files? Is it an IBM mainframe?

How are the EBCDIC files transferred to the unix server?

What is the process on the Sparc server which works?
# 14  
Old 11-12-2010
@methyl There was an official Solaris 2.5.1 release for PowerPC in 1996, but I doubt it was runnable on IBM AS400/iSeries hardware. 2.6 was supported internally but never released. No Solaris vaporware was announced in 2001.

@amodkavi What says
Code:
iconv -l

Can you post a sample of ebcdic data that doesn't convert properly ?
eg:
Code:
od -c file.ebcdic | head

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