jrecord

Is this possible to convert EBCDIC Comp-3 file to ASCII file values using java?

穿精又带淫゛_ 提交于 2021-02-09 09:21:57
问题 I am trying to convert the EBCDIC COMP-3 fields to ASCII values but which is not working.But Binary COMP-3 fields could be converted to ASCII values.Please help me to understand is this possible or not? Even using any other java library is ok for me.I tried and searched may but no concrete answer I could see. Update: In my previous one binary should be the one which will work.This what I received as answer but there was no clarity about EBCDIC COMP-3. COPYBOOK: 001700 01 EMP-RECORD. 001900 10

Is this possible to convert EBCDIC Comp-3 file to ASCII file values using java?

做~自己de王妃 提交于 2021-02-09 09:20:14
问题 I am trying to convert the EBCDIC COMP-3 fields to ASCII values but which is not working.But Binary COMP-3 fields could be converted to ASCII values.Please help me to understand is this possible or not? Even using any other java library is ok for me.I tried and searched may but no concrete answer I could see. Update: In my previous one binary should be the one which will work.This what I received as answer but there was no clarity about EBCDIC COMP-3. COPYBOOK: 001700 01 EMP-RECORD. 001900 10

How To Read a Date in Java from a COMP-3 field in COBOL?

亡梦爱人 提交于 2020-01-04 05:44:08
问题 I am trying to read a COBOL data file using JRecord, in that I have a Header record and Detail record, so I parsed with SPLIT_01_LEVEL and CopyBook File format as FMT_OPEN_COBOL. I have few date fields in the flat file as COMP-3 fields, and I am unable to understand on how to convert them into Java Date fields. ICobolIOBuilder iob = CobolIoProvider.getInstance() .newIOBuilder(copybookName) .setCopybookFileFormat(Convert.FMT_OPEN_COBOL) .setSplitCopybook(CopybookLoader.SPLIT_01_LEVEL); //I

How do I identify the level of a field in copybook using JRecord in Java?

自古美人都是妖i 提交于 2019-12-31 06:35:12
问题 I am trying to read a EBCDIC file and convert it to ASCII format in Java, with a help of copybook. I am using JRecord to read the copybook. So now, how do I get the field level from the copybook using JRecord? Edit 1: Kindly excuse me for a vague question. I have no experience in mainframe or cobol. I am adding few more details if it could help. My source file contains multiple transaction details. The copybook contains the information on the transaction and the fields relating to that

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

别说谁变了你拦得住时间么 提交于 2019-12-17 06:56:19
问题 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 to. 回答1: File Transfer To transfer a Binary file from the Mainframe to Windows / *nix box you must do a Binary Transfer for a very simple reason: the Ebcdic --> Ascii program can not distinguish between binary fields and Text fields. Comp-3 value

Unpacking COMP-3 digit using Record Editor/Jrecord

十年热恋 提交于 2019-12-02 20:47:39
问题 I have created layout based on cobol copybook. Layout snap-shot: I tried to load data also selecting same layout, it gives me wrong result for some columns. I try using all binary numeric type. CLASS-ORDER-EDGE DIV-NO-EDG OFFICE-NO-EDG REG-AREA-NO-EDG CITY-NO-EDG COUNTY-NO-EDG BILS-COUNT-EDG REV-AMOUNT-EDG USAGE-QTY-EDG GAS-CCF-EDG result snapshot Input file can be find below attachment enter link description here or https://drive.google.com/open?id=0B-whK3DXBRIGa0I0aE5SUHdMTDg Expected

Unpacking COMP-3 digit using Record Editor/Jrecord

可紊 提交于 2019-12-02 11:52:09
I have created layout based on cobol copybook. Layout snap-shot: I tried to load data also selecting same layout, it gives me wrong result for some columns. I try using all binary numeric type. CLASS-ORDER-EDGE DIV-NO-EDG OFFICE-NO-EDG REG-AREA-NO-EDG CITY-NO-EDG COUNTY-NO-EDG BILS-COUNT-EDG REV-AMOUNT-EDG USAGE-QTY-EDG GAS-CCF-EDG result snapshot Input file can be find below attachment enter link description here or https://drive.google.com/open?id=0B-whK3DXBRIGa0I0aE5SUHdMTDg Expected output: Related thread Unpacking COMP-3 digit using Java First Problem you have done an EBCDIC --> ascii

How do I identify the level of a field in copybook using JRecord in Java?

风流意气都作罢 提交于 2019-12-02 10:27:09
I am trying to read a EBCDIC file and convert it to ASCII format in Java, with a help of copybook. I am using JRecord to read the copybook. So now, how do I get the field level from the copybook using JRecord? Edit 1: Kindly excuse me for a vague question. I have no experience in mainframe or cobol. I am adding few more details if it could help. My source file contains multiple transaction details. The copybook contains the information on the transaction and the fields relating to that particular transaction. I have to split the each transaction and its fields to a separate file(containing one