Read cobol file in java




















Smart Coder Smart Coder 8 8 silver badges 14 14 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. There have been no updates for a year. Improve this answer. Bruce Martin Bruce Martin The fourth link is to a local file drive F: on a Windows system. Pablo Santa Cruz Pablo Santa Cruz k 30 30 gold badges silver badges bronze badges. Your way to access cobol datastructures sounds interesting.

Can you provide more information on how you did it? I didn't know that odbc supports accessing cobol datastructures. What would you like? It is not about accessing the metadata, that part I do understand. However, the question is more how to use a odbc connection to access data stored in a cobol data-record file. Such a file doesn't per se contain information about the structures used.

Brian Agnew Brian Agnew k 36 36 gold badges silver badges bronze badges. Thanks, however, the cb2xml only reads data definition and transforms it into xml. What I need is also a tool to read the actual data and transform it into java structures.

Or JAXB. Or handle-roll your own mechanism a little more hard work admittedly The cb2xml only gets you halfway, but it does take the COBOL and transforms it into something from which you can implement various different solutions Darron Darron Ernest Hill Ernest Hill 11 1 1 bronze badge.

Have they moved the functionality to base RAD now? Ayman Ayman These terms only help to understand the basics of file handling. Let's understand the following terms:. The field is used to indicate the data stored about an element. It represents a single element as given in the above example, such as Student id, name, marks, total marks, and percentage.

The number of characters in any field is known as field size. For example, student name can have ten characters. Fields can have the following attributes:. Primary keys are those fields that are unique to each record and are used to identify a particular record. For example, in the above example, student id is the primary key.

Secondary keys are unique or non-unique fields that are used to search the related data. For example, in the above example, the student name is the secondary key when the student id not available. Fields are used to describe an entity. For example, in the above student marks file example, marks and percentage fields that add meaning to the record are descriptors.

Record is a set of fields used to describe an entity. A record is formed by one or more fields together. Hello everyone, I'm new to the site, and have a potentially difficult question I have tried searching the web for help on the issue but have so far come up blank. If you can offer any help, I'll be very grateful!

Gary Joehlin. First you need to answer a few questions: But first a statement of interest: COBOL and ISAM do not own each other, one is a programming language and the other is a file access method, they are independent items.

You may wish to access it via a stored procedure, if it's VSAM. ISAM, I don't believe is supported any longer. Regards, Gary Joehlin colo spgs. Thanks for your input, Gary! I'll explain as best as I can, with my limitied knowledge of the issue.



0コメント

  • 1000 / 1000