support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > isCOBOL General > Interfacing with Java Programs > We plan to replace our CICS screens with Java dialogs. How will the COBOL structures be passed between the Java dialogs and the other COBOL programs?
Question Title We plan to replace our CICS screens with Java dialogs. How will the COBOL structures be passed between the Java dialogs and the other COBOL programs?
The isCOBOL Compiler outputs Java classes (actual Java .class files). Each COBOL subprogram becomes a Java class with a method for calling it. This call method accepts the COBOL linkage items as an array of Java Objects. The caller can pass Java Strings or other types of Java Objects that will be converted to the COBOL linkage items using logic similar to a COBOL MOVE statement. Also available is the option for the Java dialogs to use the isCOBOL framework types classes to create the COBOL data-type objects in Java.

Alternatively, a COBOL programmer can use Object-Oriented COBOL (OOCOBOL) syntax to define classes, methods and have precise control over the parameter types, return types and exceptions, to wrap legacy COBOL subprograms so they appear to the Java programmers just as if they were written in the Java programming language, taking full advantage of the object-oriented programming features of Java.

Also, COBOL programs have access to all of the Java classes and types. So it is easy to call Java from COBOL, COBOL from Java, and even extend Java objects using COBOL or COBOL objects using Java.

On Veryant.com, click on Solutions and then Java Integration (or http://www.veryant.com/solutions/cobol_java_integration.php) to read about these options and see actual code samples.

And the isCOBOL Development System comes with a utility (COBFILEIO) which creates Java classes to allow Java programmers to access COBOL indexed files and records as Java objects. This makes it very natural for a Java programmer to access COBOL data.
Authored by: Veryant Support This question has been viewed 5381 times so far.
Click Here to View all the questions in Interfacing with Java Programs category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. Example of COBOL using Java classes to get date and time zone information
  2. How to create and write an excel spreadsheet playing with different attributes like font, color, format, highlight, etc?.
Article Information Additional Information
Article Number: 112
Created: 2009-11-17 8:58 AM
Rating: No Rating
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.