Questions tagged [ebcdic]

Extended Binary Coded Decimal Interchange Code (EBCDIC) is a set of 8-bit character encodings.

Extended Binary Coded Decimal Interchange Code (EBCDIC) is a set of closely related 8-bit character encodings (code pages) used primarily on IBM mainframe operating systems such as z/OS, OS/390, VM and VSE, as well as IBM midrange computer operating systems such as OS/400 and i5/OS (see also Binary Coded Decimal).

180 questions
18
votes
10 answers

Convert String from ASCII to EBCDIC in Java?

I need to write a 'simple' util to convert from ASCII to EBCDIC? The Ascii is coming from Java, Web and going to an AS400. I've had a google around, can't seem to find a easy solution (maybe coz there isn't one :( ). I was hoping for an opensource…
scottyab
  • 21,990
  • 15
  • 91
  • 102
18
votes
3 answers

How to search for a character the displays as "<85>" in Vim

I have a file that was converted from EBCDIC to ASCII. Where there used to be new lines there are now characters that show up as <85> (a symbol representing a single character, not the four characters it appears to be) and the whole file is on one…
Thomas G Henry
  • 10,023
  • 8
  • 26
  • 30
16
votes
4 answers

UTF-8 to EBCDIC in Java

Our requirement is to send EBCDIC text to mainframe. We have some chinese characters thus UTF8 format. So, is there a way to convert the UTF-8 characters to EBCDIC? Thanks, Raj Mohan
Raj Mohan
15
votes
2 answers

Converting EBCDIC to ASCII in java

I am supposed to convert an EBCDIC file to ASCII by using Java. So far I have this code: public class Migration { InputStreamReader reader; StringBuilder builder; public Migration(){ try { reader = new…
Robin-Hoodie
  • 4,519
  • 4
  • 22
  • 56
11
votes
2 answers

Character set that is not a superset of ASCII

Is there a character set other than EBCDIC that is not a superset of 7-bit ASCII?
Martin Geisler
  • 69,865
  • 23
  • 162
  • 224
11
votes
2 answers

Dynamically Reading COBOL Redefines with C#

I'm making a C# program that will be able to dynamically read an IBM HOST Copybook written in COBOL and generate an SQL table off of it. Once the table is generated I can upload a file into my program and it will read, convert from IMB-37 and insert…
Daniel Dennis
  • 113
  • 1
  • 8
11
votes
7 answers

How to convert from EBCDIC to ASCII in C#.net

I have a value in EBCDIC format "000000{". I want to convert it into a.Net Int32 type. Can anyone let me know what I can do about it?? So my question is given a string that contains a signed numeric in EBCDIC , what should I be doing to convert it…
Sai
  • 111
  • 1
  • 1
  • 3
8
votes
2 answers

C# encoding a file in EBCDIC with packed decimals

I have to prepare a file for an outside entity, and this entity uses an IBM mainframe with COBOL and requires the file to be encoded in EBCDIC. I am creating the file in C#. I guess this is a two-part question...firstly, is the code below sufficient…
Matt
  • 83
  • 1
  • 3
8
votes
4 answers

How to unpack COMP-3 digits using Java?

I have huge mainframe file and there are some packed digits in that file. I would like to know how to unpack following digit using java? packed digit : ? I read tutorials for unpacking digits and found the following rule to count the number of bytes…
Shekhar
  • 10,233
  • 31
  • 116
  • 179
7
votes
4 answers

convert EBCDIC String to ASCII format?

I am having a flat file which is pulled from a Db2 table ,the flat file contains records in both the char format as well as packed decimal format.how to convert the packed data to a java string.is there any way to convert the entire flat file to…
Lalchand
  • 7,039
  • 24
  • 62
  • 78
7
votes
4 answers

Detect if execution character set letters are contiguous

In the code, a switch is used to convert letters to contiguous values. Optimizing compilers in general won't do the job as well as the simple contiguous digit condition right before the switch. How can I detect which execution character set used…
hdante
  • 6,100
  • 1
  • 27
  • 34
7
votes
2 answers

Unpacking EBCDIC Packed Decimals (COMP-3) in an ASCII Conversion

I am using Jon Skeet's EBCDIC implementation in .NET to read a VSAM file downloaded in binary mode with FTP from a mainframe system. It works very well for reading/writing in this encoding, but it does not have anything to read packed-decimal…
Josh Stodola
  • 77,975
  • 43
  • 178
  • 222
5
votes
2 answers

Decoding Ebcdic

I'm being passed data that is ebcdic encoded. Something like: s = u'@@@@@@@@@@@@@@@@@@@ÂÖÉâÅ@ÉÄ' Attempting to .decode('cp500') is wrong, but what's the correct approach? If I copy the string into something like Notepad++ I can convert it from…
g.d.d.c
  • 41,737
  • 8
  • 91
  • 106
5
votes
4 answers

Java: Convert String to packed decimal

new here! Situation: I'm working on a project which needs to communicate with an AS/400 server. My task is to basically handle the requests which will be sent to the AS/400 server. To do this, all the user input should be in EDCDIC bytes. Problem: I…
mpmp
  • 2,159
  • 3
  • 27
  • 42
4
votes
2 answers

How to unpack COMP digits using Java?

I had found this useful link for unpacked COMP-3 digit, but i need to unpack COMP digit this time, is anyone know how to unpack it? Thanks a lot!
Michael Ouyang
  • 594
  • 1
  • 4
  • 15
1
2 3
11 12