Is it possible to make my cobol program to executable file or having .bat? just like in java they have .jar file.
How can i make my cobol program to be executable file or .Bat
3.8k views Asked by jemz At
1
There are 1 answers
Related Questions in COBOL
- how to create an array of multiples of 5 and display it in reverse
- Z/OS Cobol 6.3 copy: how to include only a chunk?
- Trying to add gm and hm calculations to cobol program
- Cobol program wont read until end of file
- Cobol errors, cannot seem to figure it out
- Cobol file WRITE not allowed, file not open for output (status = 48) for file output-file
- Record grouping and aggregation
- open fetch and close cursor DB2
- How to create comments using only * in COBOL?
- DB2 contention issues
- Using the routine CSNBOWH on IBM I - MD5
- Addition of PIC 9 variable with space not causing ABEND S0C7
- FIlling a zone with S9(5)V9(8) COMP-3
- Microfocus COBOL - Remote debugging requires ALL programs to be compiled for debugging?
- VSCode snippet, how to force the starting column of a line?
Related Questions in COBOL85
- Display order doesn't show nothing of file content when is executed a compiled .cbl file with cobcrun
- How to compute custom timestamp in COBOL85 Tandem?
- Store "Nº" before number in COBOL
- How to work with dynamic strings in Cobol?
- Getting current line number in Cobol
- First calculated records in record-line/output-line becomes BLANK in output in COBOL
- What does Cobol file status 9Â mean?
- How do I rectify this logical error in printing output in the SYSOUT spool from COBOL program?
- What is the standard COBOL RANDOM function implementation?
- COBOL85: How to find number of rows in an array dynamically
- COBOL - Understanding SET MYSELF
- COBOL Record description entry I cannot decipher
- Is there someway to log variables in COBOL like the other languages?
- Unknown exact format of COBOL-85 source files
- What is the difference between COBOL Nested Program vs. Subroutine in Z/OS
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Either COBOL.EXE or COMPILE.BAT in MS-COBOL 2.20 can create an intermediate file. If your source code is HELLO.COB, use either:
or
Both commands will produce the intermediate file HELLO.INT. The intermediate file can be run with
That command could be put into a .BAT file to create an "executable" file that might fit your need.
MS-COBOL 2.20 also comes with LINK.EXE that should be able to turn HELLO.INT into HELLO.EXE. I could not get it to work on Windows XP. MS-COBOL 2.20 was written for DOS, not Windows, so I am not surprised.
All that being said, please do not use MS-COBOL 2.20. It is very old and there is little documentation available. For Cobol on the PC, Microfocus and Fujitsu have good compilers, but you need to pay for them at some point. I use and recommend OpenCobol, which is open source. It is available for free for Windows and Linux and has good documentation. Please see opencobol.org. The direct link to the documentation is http://opencobol.add1tocobol.com/OpenCOBOL%20Programmers%20Guide.pdf. A fast way to get OpenCobol on WindowsXP is using OpenCOBOL-1.1-06FEB2009-mingw.zip (see link and instructions near the bottom of http://www.opencobol.org/modules/bwiki/index.php?Assorted%20Documents).