Questions tagged [copybook]

Questions about library text as used in COBOL. This text is often used to define the structure and format of the data for records in a file. When the copybook is used as a source for a tool for data conversion, use a tag for the tool, if available; otherwise, use the 'cobol' tag and identify the tool by name. For other questions about the use or content of a copybook use the 'cobol' tag.

52 questions
0
votes
2 answers

How do I define the record structure of ebcdic file?

I have ebcdic file in hdfs I want to load data to spark dataframe, process it and load results as orc files, I found that there is a open source solution which is cobrix cobrix, that allow to get data from ebcdic files, but developer must provide a…
Chaouki
  • 446
  • 2
  • 8
  • 20
0
votes
1 answer

mfl conversion for exponential data

In OSB, We are facing issue in mfl conversion from double exponential data to unsigned zoned decimal. It is failing because of exponential data(0E -7). Input : 000000 in binary format --> mfl transforms it to 0E-7 --> again we try to convert this…
hakish
  • 3,990
  • 7
  • 39
  • 56
0
votes
1 answer

mainframe copybook with redefines clause to load data in oracle external table

I have redefines clause in a copybook that I have to load into oracle external table using the file sent over. Below is the copybook information. Incoming file is in positional format Should I assume in the data record in file, first 8 characters is…
Jay J
  • 1
  • 1
0
votes
2 answers

Executing XML to Copybook COBOL and vice versa transformation in JAVA application

I am new to COBOL Copybook/ XML mapping. So please forgive me for any silly question I ask here. Basically I'm required to perform XML to COBOL Copybook and vice versa transformation in a Java Application. I know it can be done in WebShpere…
Sunny
  • 99
  • 1
  • 2
  • 7
0
votes
1 answer

How to convert Java object to binary file using copybook

Is anyone aware of how to convert a Java object into a binary file using a COBOL copybook? The file is to be transmitted to mainframe and hence has to have the mapping with copybook. I tried looking at JRecord but I could find just the conversion…
Nishit
  • 1,276
  • 2
  • 11
  • 25
0
votes
1 answer

Mainframe comp-3 field reading using JRecord

I am trying to read mainframe file but all are working other than comp 3 file.Below program is giving strange values.It is not able to read the salary value which is double also it is giving 2020202020.20 values. I don't know what am missing.Please…
sunleo
  • 10,589
  • 35
  • 116
  • 196
0
votes
1 answer

Edit a Mainframe file in the RecordEditor without a copybook

How do you Edit a (binary EBCDIC) Mainframe file in the RecordEditor with out a Cobol Copybook. How do you generate Java code to read the file using the RecordEditor. Note: This is an attempt to split a question that is far to broad to give…
Bruce Martin
  • 10,358
  • 1
  • 27
  • 38
0
votes
2 answers

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

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

Cobol Copybook to Collibra : Common practice/architecture

What is the common practice for importing Copybook Metadata to Collibra ? I'm trying to import Copybook schema into Collibra DGC. I am planning to follow these mapping structure : Copybook Asset | |__ Field Assest | |__ Field Assest | | …
Pradatta
  • 3,000
  • 1
  • 18
  • 22
0
votes
4 answers

difference between RPG copybook and program

Could you give me some idea as to looking at file how can I differentiate between RPG copybook and program? For example, in c, if you have main in the file, you know that it can be used as program. Thanks in advance.
user1578026
0
votes
1 answer

IBM Integration Bus: How to import COBOL copybooks and expose them as WS SOAP?

I'm designing an ESB solution using IBM Integration Bus v10 (IIB). We'd like to somehow import our existing COBOL copybooks into the Toolkit and expose them as SOAP WebServices. I just find on its documentation how to create mapping nodes and do the…
Ariel C.
  • 33
  • 1
  • 6
0
votes
0 answers

Java - read data from COBOL copybook

I have below copybook: 10 TESTTYPES. 30 NINETEEN PIC 9(2). and my input in a types.txt file: 19 I am using cb2java 5.3 to convert the input to Java. Below is my code: List records = copybook.parseData(new FileInputStream(new…
Sridhar
  • 1,832
  • 3
  • 23
  • 44
0
votes
1 answer

CopyBooks,.cpy files,WTX Design Studio

I am working on WTX design Studio with copybooks,i have a copybook but i dont have any corresponding sample input regarding that .cpy file . Are there any means to generate a sample text file from copy book rather than writing the text document…
0
votes
1 answer

Multiple SYSLIB in a property group or multiple property groups in a COBOL program in Rational Developer for System Z

I'm wondering if I can set more than one SYSLIB in a property group or more than one property groups in a COBOL program. I'm using Rational Developer for System Z v9. My program requires copybooks that are from different sources and as far as I…
0
votes
1 answer

WTX test data for running the maps

I have created a mapping of copybook elements to WSDL fields. And the map was built successfully. But while running the map locally, I am getting either of the two error for the two different operations that I am mapping: 1) For the first mapping:…
akhouri
  • 3,065
  • 3
  • 25
  • 29