Previous Topic Next topic Print topic


Editing

You're now going to start the COBOL Editor. This editor is designed especially for COBOL programs, although it can be used for any type of source file.

  1. Press F2=edit

    The work area clears and a new menu appears, shown in the figure below.

    The COBOL Editor Main Menu:


    The COBOL Editor Main Menu

    The COBOL Editor enables you either to type in COBOL source, or to load in a file created previously. If you were creating a new program you would type it now. However, the source of Tictac is supplied on disk for you. You simply load it into the COBOL Editor, as described in the next step.

    Accessible from the main menu are two more menus - the Alternate menu and the Control menu - which you get to by pressing Alt and Ctrl. See the appendix UNIX Key Usage Chart for details on actual keystrokes required for these keys.

  2. Press F3=load file on the Alternate menu.

    The Load File menu appears. It includes a line on which to type the name of the file to load. The directory you are in is already displayed on this line.

  3. Enter:
    tictac

    You need not specify the extension .cbl; the COBOL Editor assumes .cbl if no extension is specified.

The source code is displayed with the cursor positioned under the first statement on line 1. The main menu of the COBOL Editor returns.

Previous Topic Next topic Print topic