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
0
votes
1 answer

Reading a mainframe EBCDIC File

I have a EBCDIC coded mainframe file which I need to convert to an ASCII format. Which libraries/tools can I use to do that. I am most familiar with Python. The file I received has a cookbook with it, which can be used to parse the file (part of it…
user2346491
  • 39
  • 1
  • 1
  • 2
0
votes
0 answers

Implementing of a custom load function in PIG

I am trying to read an ebcdic IBM file by using PIG (hadoop), so I need to create my custom load function. The dafault getInputFormat() is as follows: @Override public InputFormat getInputFormat() { return new TextInputFormat(); …
Edge7
  • 681
  • 1
  • 15
  • 35
0
votes
1 answer

iconv with EBCDIC support on Cygwin

I installed iconv on Cygwin using the setup utility. The version information is as follows: $ iconv --version iconv (GNU libiconv 1.14) Copyright (C) ..... Written by Bruno Haible. However iconv -l is not showing any EBCDIC related codepages. Is…
Manoj
  • 58
  • 6
0
votes
0 answers

Ruby How convert HEX in EBCDIC-US

How is possible to convert an HEX string to a EBCDIC-US string in ruby? Is there any library? I looked for and I didn't find anything. The only other way that I have in mind is to build a conversion table from hex to ebcdic but are 255 chars. Any…
fege
  • 547
  • 3
  • 7
  • 19
0
votes
0 answers

JDK1.5 ignores jvm option ibm.swaplf

I'm trying to convert a UTF-8 file to EBCDIC IBM284, but java transforms 0A (\n) to 0x15, instead of 0x25 which is the standar our host is using. After searching the Web I found that you can set the option ibm.swaplf to true to change this behavior,…
JorgeFD
  • 21
  • 5
0
votes
0 answers

Converting EBCDIC to persian characters in c#

I use this implementation of converting EBCDIC to ASCII. this solution is OK for English characters. But I want to use it for Persian[or Arabic] characters. It doesn't work correctly for Persian characters. Do you know another solution?
KoKo
  • 421
  • 1
  • 5
  • 21
0
votes
1 answer

Read large EBCDIC file and verify fixed line length

I have a large EBCDIC file which can be between 100mb to 900mb. Each line has a fixed lenght of 499 chars. At the end of the line is one byte hex(0A) which represents RPT = line feed. The first two rows differ from the 499 char fixed lenght. What…
vo1d
  • 2,723
  • 2
  • 20
  • 17
0
votes
1 answer

Arabic text from SQL server data bases which don't support Arabic

I have an issue with some .txt files exported from a vb6 application which use Arabic characters. The vb6 application stores Arabic data in an sqlserver databases which doesn't support Arabic encoding, so all data are stored as an unrecognized…
AhmedDrira
  • 425
  • 5
  • 13
0
votes
2 answers

Issue with comp3 fields in COBOL source file

We have used the below process in loading the file(with comp3 data) to informatica from Mainframe. FTPd the mainframe file in Binary mode to Unix server Imported the source cobol copybook as VSAM file type Set the source file properties as fixed…
0
votes
1 answer

Is there a way to connect to DB2 on z/os using a jdbc driver

Am evaluating options other than either Sybase's DirectConnect or IBM's DB2Connect to connect to DB2 running on z/OS. From what our findings have shown us so far, we need to connect and also do format translation from ASCII to EBCDIC and vice versa.…
ZeroGraviti
  • 1,047
  • 2
  • 12
  • 28
0
votes
0 answers

db2: loading ebcdic data from mainframe into Linux to stay ebcdic

I need to load tables coming from a mainframe DB2 (i.e with data encoded into EBCDIC) onto a Linux DB2 and keep them EBCDIC in Linux. I tried to play with the TERRITORY and CODEPAGE parameters on the CREATE DATABASE on Linux but could not reach the…
Didier Durand
  • 627
  • 7
  • 16
0
votes
3 answers

Ruby EBCDIC conversion with String#encode instead of iconv

I used to do it fine with: Iconv.iconv('ASCII', 'EBCDIC-US', someEBCDICstring) since ruby 1.9 I get that warning: iconv will be deprecated in the future, use String#encode instead. but I can't find any reference of EBCDIC or cp37, cp500, cp875...…
Victor
  • 1,680
  • 3
  • 22
  • 40
0
votes
1 answer

VB.Net/C# - ASCII to EBCDIC

I have an application which converts ASCII encoded file to EBCDIC encoded file. My problem is that, whenever I try to use other conversion tool(EBCDIC to ASCII), I am having a problem. This is where I got my codes…
devrox
  • 110
  • 1
  • 10
0
votes
2 answers

Reading db2 clob from binary download

More then a year ago I asked about reading DB2 EBCDIC data in a .Net program. The amazingly helpful answer included a routine for reading VARCHAR columns. I am now faced with reading CLOB columns. Is their internal structure similar in that the…
GilShalit
  • 6,175
  • 9
  • 47
  • 68
0
votes
4 answers

php - convert ebcdic to ascii

$my_var = "1"; $connection = db2_connect ( "*LOCAL", "ISCSC", "ISCSC" ); $strSql = 'CALL LMTLIB.ARTEST(?)'; $stmt = db2_prepare ( $connection, $strSql ); db2_bind_param($stmt, 1, "my_var", DB2_PARAM_INOUT, DB2_CHAR); $rc = db2_execute ( $stmt…
adam
  • 2,930
  • 7
  • 54
  • 89
1 2 3
13
14