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 > Deployment > How do I generate an executable for deployment?
Question Title How do I generate an executable for deployment?


My application deployment environment assumes that the COBOL main programs are native executables. I understand that with isCOBOL the COBOL main programs are Java classes. It is not feasible for me to change my deployment architecture to require object-orientation, execution from within a Java application, application server or Java-enabled server. My COBOL application depends on there being a native executable for each COBOL main program.

Is there a solution for this problem?


The answer is yes! The vast majority of Veryant's customers have this same requirement since their applications were written for COBOL compilers that produced native executables.

To solve this problem, Veryant's COBOL compiler produces Java classes that have a "main" entry-point that takes command-line style arguments just the same as other COBOL compilers.

Fortunately, whether running Linux, UNIX or Windows, the operating system and system functions can execute shell scripts or batch files exactly as if they were native executables.

For example, the command-line to execute a COBOL program named PRG00001 is java PRG00001. On Linux/UNIX/Windows it is possible to create a shell script or batch file to execute this program using only the program name by creating a file named PRG00001 on Linux/UNIX or PRG00001.bat on Windows with the following contents:

On Linux/UNIX:

java PRG00001 $*

On Windows:

java PRG00001 %*

Any arguments passed on the command line after the executable name will be received by the COBOL program in the normal manner.

On Linux/UNIX you can enable a text file as an executable script using the command chmod +x filename.

On Windows the file extensions .bat or .cmd indicate that the file is an executable.

See also:

What are the minimum files I need for a runtime-only installation? How do I create a launcher?

How can I package my application and execute it in a JAR file?

How do I create a desktop shortcut icon to launch my program?

Authored by: Veryant Support This question has been viewed 5497 times so far.
Click Here to View all the questions in Deployment 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. Did you know you can create temporary files in memory?
  2. What are the minimum files I need for a runtime-only installation? How do I create a launcher?
  3. How can I encode a URL String?
  4. Working with sequential files on Pipes
  5. Did you know isCOBOL IDE allows you to easily understand how to invoke a method in a Java Class?
  6. What can I use to perform an email validation during entry-field accept?
  7. How do I create an installation package for my COBOL application?
  8. Is there a way to to emulate the W$GETC routine?
  9. Did you know isCOBOL IDE allows you to easily understand how to invoke a method in a Java Class?
  10. Did you know you could choose from different languages for isCOBOL message?
  11. Did you know you could set a background image from isCOBOL IDE's painter?
  12. How can I read data correctly from a line-sequential file that has a different encoding from the one used by isCOBOL?
  13. Did you know these two ways of finding out the working directory in use?
  14. Can I mix versions of Java, isCOBOL compiler and isCOBOL runtime?
  15. How can I read a data written with a different encoding?
  16. How can I use the Call/Cancel custom HOOK program to get the start and end time of every CALLed program?
  17. How can I tell if my application is running in the WebClient environment or another environment?
Article Information Additional Information
Article Number: 166
Created: 2011-03-14 9:13 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.