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).

208 questions
99
votes
1 answer

What is the meaning of char foo(|10|) in C?

I'm a very experienced C programmer, but recently I came across some code on a mainframe that has a local variable. This is in a simple C function that declares this variable, and then strcpy / strcats two strings into it, and then tries an…
gbronner
  • 1,907
  • 24
  • 39
20
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
  • 23,621
  • 16
  • 94
  • 105
19
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 LLC
  • 10,887
  • 8
  • 30
  • 32
17
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
16
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,886
  • 4
  • 30
  • 63
13
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
  • 72,968
  • 25
  • 171
  • 229
12
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
  • 133
  • 1
  • 8
10
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
  • 101
  • 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
  • 11,438
  • 36
  • 130
  • 186
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,627
  • 26
  • 67
  • 79
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
  • 7,685
  • 3
  • 31
  • 36
7
votes
1 answer

Converting String from One Charset to Another

I am working on converting a string from one charset to another and read many example on it and finally found below code, which looks nice to me and as a newbie to Charset Encoding, I want to know, if it is the right way to do it . public static…
Arpit Aggarwal
  • 27,626
  • 16
  • 90
  • 108
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
  • 81,538
  • 47
  • 180
  • 227
5
votes
2 answers

How do you generate java~jrecord code for a Cobol copybook

How do you use the RecordEditor to Generate Java~JRecord code from a Cobol Copybook to read/write a Binary EBCDIC Mainframe File. This a Question and answer to try an prevent some poor/misleading questions being asked or the answer can be pointed…
Bruce Martin
  • 10,358
  • 1
  • 27
  • 38
1
2 3
13 14