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
2
votes
4 answers

Unpacking COMP-3 digit using Java

I have a file with some COMP-3 encoded fields. Can someone please tell me how do I test this code in below thread ? How to unpack COMP-3 digits using Java? Code I tried is BufferedReader br = new BufferedReader(new FileReader(FILENAME))) { …
Rahul Patel
  • 307
  • 1
  • 9
  • 27
2
votes
4 answers

EBCDIC to ASCII conversion. Out of bound error. In C#

I tried creating a EBCDIC to ASCII convector in C# using this general conversion order(given below). Basically the program converted from ASCII to the equivalent integer and from there into EDCDIC using the order below. Now when I try compiling…
aiw
  • 129
  • 1
  • 2
  • 7
2
votes
3 answers

How to convert ASCII data to EBCDIC in C#?

I read about conversion of ASCII to EBCDIC using this link; Convert String from ASCII to EBCDIC in Java? But this is in java. My requirement is in C#.Net. So can you please help me with this? Thanks & Regards, Krishna Kumar
Krishna Kumar N
  • 137
  • 2
  • 13
2
votes
1 answer

Why maven-resources-plugin ignores my charset encoding setting?

I have a java artifact dual-built for both linux & IBM mainframe, all the dependent shell scripts (in /sbin dir) are initially written in ASCII but are copied to another directory (in /sbin-ebcdic). So I configure the maven-resources-plugin to do it…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
2
votes
1 answer

why does "STRING".getBytes() work different according to the Operation System

I am running the code below and I am getting different outcome from "some_string".getBytes() depending if I am in Windows or Unix. The issue happens with any string (I tried a very simple ABC and same problem. See the differences below printed in…
Jim C
  • 3,957
  • 25
  • 85
  • 162
2
votes
2 answers

How to change HEX value to EBCDIC char

What is the simplest way to convert HEX value to ebcdic char type in Java e.g. The example below will return at sign but I would like to get ebcidic equivalent i.e. space char.. String hex = "40"; char c = (char) Integer.parseInt(hex, 16);
vininet
  • 21
  • 1
  • 2
2
votes
2 answers

Strange behaviour with StreamReader and EBCDIC: Why?

Background: I have to write an application that takes a poorly designed EBCDIC file with binary data in it that uses ASCII line terminators, and sometimes that binary data happens to contain ASCII CRLF which causes the line to split incorrectly. I…
ldam
  • 4,412
  • 6
  • 45
  • 76
2
votes
2 answers

java program to convert EBCDIC to ASCII

I wrote a simple java program to convert EBCDIC to ASCII. It's not working correctly. Here is what I did Step 1: Convert ASCII file to EBCDIC using the following command : dd if=sampleInput.txt of=ebcdic.txt conv=ebcdic sampleInput.txt has…
user2942227
  • 1,023
  • 6
  • 19
  • 26
2
votes
1 answer

Does Eclipse support sources in EBCDIC?

I would like to work in Eclipse with sources that are in EBCDIC (IBM i version). It seems like the standard Eclipse installation is missing EBCDIC in the list of the supported codepages for its editor. So, is there a way to add support of EBCDIC…
spoonboy
  • 2,570
  • 5
  • 32
  • 56
2
votes
5 answers

COBOL COMP-3 number format issue

I have a cobol "tape format" dump which has a mixture of text and number fields. I'm reading the file in C# as a binary array (array of byte). I have the copy book and the formats are lining up fine on the text fields. There are a number of…
Shaun Neal
  • 1,183
  • 1
  • 10
  • 12
2
votes
2 answers

How to display the actual value of a comp variable in cobol

I have the following variable in COBOL program which gets its value from a file, when it is read: 01 Employee-number PIC 09(8) comp 01 Employee-number-x redefines Employee-number PIC x(04) I have another variable in the same program: 01…
Vikas
  • 1,900
  • 1
  • 19
  • 20
2
votes
2 answers

Is UTF to EBCDIC Conversion lossless?

We have a process which communicates with an external via MQ. The external system runs on a mainframe maching (IBM z/OS), while we run our process on a CentOS Linux platform. So far we never had any issues. Recently we started receiving messages…
Jose
  • 1,616
  • 4
  • 26
  • 38
2
votes
3 answers

How To Read Half width & full width characters from EBCDIC using Cobol copy book

I am using Talend to convert EBCDIC file using Cobol copy book representation of EBCDIC file. but i am unable to find out Half width and Full width representation of EBCDIC character please suggest.
UmeshR
  • 803
  • 1
  • 9
  • 16
2
votes
2 answers

Convert String from EBCDIC to Unicode / UTF8

I'm able to send messages from Java to Websphere MQ on AS400. If I send messages from WinXP, there is no difference if I use any accessible Locale, including full Language Localization; nor is there a problem with English Locale. Important for…
mKorbel
  • 109,525
  • 20
  • 134
  • 319
1
vote
2 answers

Merging EBCDIC converted files and pdf files into a single file and pushing to mainframes

I have two pdf files and two text files which are converted into ebcdif format. The two text files acts like cover files for the pdf files containing details like pdf name, number of pages, etc. in a fixed format. Cover1.det, Firstpdf.pdf,…
Vicky
  • 16,679
  • 54
  • 139
  • 232