Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>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:</p> <pre><code>COMPILE.BAT HELLO </code></pre> <p>or </p> <pre><code>COBOL.EXE HELLO.COB,HELLO.INT,HELLO.LST </code></pre> <p>Both commands will produce the intermediate file HELLO.INT. The intermediate file can be run with </p> <pre><code>RUNCOB HELLO </code></pre> <p>That command could be put into a .BAT file to create an "executable" file that might fit your need.</p> <p>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.</p> <p>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 <a href="http://opencobol.add1tocobol.com/OpenCOBOL%20Programmers%20Guide.pdf">http://opencobol.add1tocobol.com/OpenCOBOL%20Programmers%20Guide.pdf</a>. A fast way to get OpenCobol on WindowsXP is using OpenCOBOL-1.1-06FEB2009-mingw.zip (see link and instructions near the bottom of <a href="http://www.opencobol.org/modules/bwiki/index.php?Assorted%20Documents">http://www.opencobol.org/modules/bwiki/index.php?Assorted%20Documents</a>).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload