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 best solutions below
Related Questions in COBOL
- ODBC ISAM_EOF without any reason
- ANTLR 4 - How to reduce prediction time for IF statements with optional END-IF (COBOL grammar)
- Change display format from character mode to numeric mode
- How to implement SEPARATE island grammar in ANTLR4 with correct line numbers and char index?
- how to form fields section in xfd file
- I have a variable with PIC S9(4). Whether I use COMP or COMP-3 here?
- COBOL table structure and output
- MicroFocus cobol commands cobinit,cobcall and cobtidy are throwing errors in my C program
- COBOL: Read INPUT from SYSIN and store to variable
- Error in cobol program on linux selecting from table in postgresql database
- Priority of SonarQube Cobol Plugin Copy Directories
- How to print decimal points in cobol?
- Can I write more than one structure in file?
- When a sql returns more than one value, what value will be stored in the host variable
- Parser for signed overpunch values?
Related Questions in COBOL85
- difference between passing control to different program using return() and calling a program using xctl
- cobol 85 , carriage return and line feed
- I'm having trouble with tables using Cobol
- What does Cobol file status 9Â mean?
- How do you grab a string in COBOL from a file when the position is unknown?
- How can duplicates be removed from a file using COBOL?
- How can i make my cobol program to be executable file or .Bat
- What is the standard COBOL RANDOM function implementation?
- How do I rectify this logical error in printing output in the SYSOUT spool from COBOL program?
- COBOL 85 yes or no input validation
- How do I prevent a Cobol program from going into an infinite loop if no match found on 2 flat files?
- COBOL - Understanding SET MYSELF
- Getting current line number in Cobol
- First calculated records in record-line/output-line becomes BLANK in output in COBOL
- Unknown exact format of COBOL-85 source files
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)
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?
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).