Previous Topic Next topic Print topic


Compiling

You might have noticed that the main menu has keys for the Compile and Animate functions. However, you can also access these functions from within the COBOL Editor, and we will do it this way in this tutorial.

  1. From the COBOL Editor's main menu, press F2=COBOL once. Do not hold it down, as this would make it repeat.

    The COBOL menu appears.

  2. Press F2= compl /animate once.

    On this menu, F2 is a toggle selecting whether you will compile, animate, or both. Its setting is shown on the information line, and changes each time you press.

  3. Press F2= compl /anim until its setting is "Cmp+Anim".
  4. Press Enter to begin compiling.

    The COBOL Editor screen disappears. The Compiler checks the program for syntax errors and produces intermediate code.

The Compiler creates the intermediate code in a file with extension .int and produces extra information needed by the Animator in a .idy file. When it has finished the Animator screen appears.

Intermediate code can also be run without further preparation, using the Run option as described in the section Running.

Previous Topic Next topic Print topic