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

Reverse EBCDIC sorts numbers before letters in ROW_NUMBER function

So I do have following SQL select SELECT FOO.*, ROW_NUMBER() OVER (ORDER BY KEY ASC) AS ROW_NUMBER FROM FOO Key is of the type VARCHAR(12). I wonder why the hell the numbers are sorted after the letters. Every other system including UTF-8 always…
Pwnstar
  • 2,333
  • 2
  • 29
  • 52
-1
votes
1 answer

BASH Script to find a string in a file by position, match, then modify that position and insert if it exists

I have several lines in a file (input.in) that may look like this (asterisks are not literal; added for…
Gene
  • 67
  • 5
-1
votes
1 answer

Design approach for EBCDIC conversion

I have a format file with following contents FIELD NO.,FIELD NAME,STARTING POSITION,ENDING…
user1768029
  • 415
  • 8
  • 22
-1
votes
1 answer

Custom Serde for EBCDIC file format

I am new to this hadoop environment and I want to write a custom SerDe for EBCDIC files. I searched a lot on the internet but didn't get any material about SerDe development. If you have any idea about SerDe development please post the links. Thanks…
Rohit Khirid
  • 49
  • 1
  • 8
-1
votes
2 answers

How to convert EBCDIC hex to binary

//PROBLEM SOLVED I wrote a program to convert EBCDIC string to hex. I have a problem with some signs. So, I read string to bytes, then change them to hex(every two signs) Problem is that, JAVA converts Decimal ASCII 136 sign according to…
Shaq
  • 377
  • 5
  • 16
-1
votes
1 answer

Error while converting string from EBCDIC to ASCII in C/C++

I am writing c++ code to convert ebcdic to ascii My main() is shown below int main() { char text[100]; int position; int count; printf("Enter some text\n"); cin >> text; char substring[] = "\\x"; if(strlen(text) 2 != 0) { …
imniiik
  • 1
  • 2
-1
votes
1 answer

Site code to enable UTF-8 to EBCDIC encoding

I'm trying to transmit a rather large UTF-8 file to a Z/OS dataset. Unfortunately, the command SITE EN=MBCS MBD=(1047,1208) RECFM=VB TYPE A STOR STORE.WRK.DATA responds with 504 Multi-byte encoding not supported for RECFM=FB It seems the…
Stavr00
  • 3,219
  • 1
  • 16
  • 28
-1
votes
6 answers

Is this a sensible approach for an EBCDIC (CP500) to Latin-1 converter?

I have to convert a number of large files (up to 2GB) of EBCDIC 500 encoded files to Latin-1. Since I could only find EBCDIC to ASCII converters (dd, recode) and the files contain some additional proprietary character codes, I thought I'd write my…
Eisen
  • 450
  • 4
  • 11
-2
votes
2 answers

What's the rationale behind this EBCDIC to ASCII conversion?

I would like to understand how exactly this conversion happens. http://www8.cs.umu.se/~isak/Snippets/a2e.c /* ** ASCII <=> EBCDIC conversion functions */ static unsigned char a2e[256] = { 0, 1, 2, 3, 55, 45, 46, 47, 22, 5, 37, 11,…
San
  • 3,933
  • 7
  • 34
  • 43
-3
votes
1 answer

How do you make conversions tables?

I need to make some ebcdic_1141/cp1252 convertions. Here are the tables I found : http://publib.boulder.ibm.com/infocenter/pcomhelp/v5r9/index.jsp?topic=/com.ibm.pcomm.doc/reference/html/hcp_reference02.htm How do you make convertions tables from…
Jacob Ilyane
  • 85
  • 1
  • 1
  • 6
-3
votes
1 answer

I need method which take String as input and return ebcdic representaion of String as byte[]

public byte[] stringToEbcdic(String s, String encoding){ String payload = null; try { payload = new String(s.getBytes("encoding"), "ISO-8859-1"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } …
user1824107
  • 15
  • 1
  • 5
-5
votes
2 answers

Need Explanation for the code. Can someone please explain why the output of the code is -32?

main() { char c1='a' , c2='A'; int i=c2-c1; printf("%d", i); } What is the output of this code. Please explain why? I know the Answer is -32 but Can someone explain why it's -32?
Arjun
  • 15
  • 2
-5
votes
2 answers

Char array to byte array to readable String

I have a char array which I retrieved from WireShark which is: char peer0_0[] = { 0x00, 0x00, 0x04, 0xf2, 0x5c, 0xc8, 0xd6, 0xe2, 0xe3, 0xf1, 0xf9, 0xf2, 0x4b, 0xf1, 0xf6, 0xf8, 0x4b, 0xf1, 0xf0, 0xf7, 0x4b, 0xf9, 0xf7, 0x40, 0x00, 0x00, 0x00,…
user979023
  • 63
  • 2
  • 9
1 2 3
13
14