1.2 Creating a DEC C Program

To create and modify a DEC C program, you must invoke a text editor. The OpenVMS system provides you with two text editors: EDT and the DEC Text Processing Utility (DECTPU). The following section discusses DECTPU. See the OpenVMS EDT Reference Manual for more information on EDT.

1.2.1 Using DECTPU

DECTPU is a high-performance, programmable utility. It provides two editing interfaces: the Extensible VAX Editor (EVE), described in the following section, and the DECTPU EDT Keypad Emulator. You can also create your own interfaces.

Like EDT, DECTPU provides you with an online help facility that you can access during your editing session. When you invoke DECTPU to create a file, a journal file is automatically created. You can use this journal file to recover your edits if the system fails during an editing session. To recover your edits, enter the EVE/RECOVER command.

Unlike EDT, DECTPU provides multiple windows. This feature allows you to view two files on your screen at the same time.

1.2.2 The EVE Interface to DECTPU

EVE is an interactive text editor that allows you to execute common editing functions using the EVE keypad or to execute more advanced functions by entering commands on the EVE command line. The following command line invokes the EVE editor and creates the file PROG_1.C:

$ EDIT/TPU PROG_1.C

You can define a global symbol for the EDIT/TPU command by placing a symbol definition in your LOGIN.COM file. For example:

$ EVE == "EDIT/TPU"

After this command line is executed, you can type EVE at the DCL prompt followed by the name of the file you want to modify or create.

For more information on using EVE, see the Guide to VMS Text Processing.


Previous Page | Next Page | Table of Contents | Index