### NAME Module Definition Statement

Syntax: | Parameters:
NAME [appname] NAME[appname][apptype] | Application name WINDOWAPI|WINDOWCOMPAT |NOTWINDOWCOMPAT

Use the NAME statement to define the name and of the executable file.

Use the NAME statement to define the name and, optionally, the type of the executable file.

You can also identify the output file as an .EXE file with the /EXEC linker option.

If you use the NAME statement in your module definition file, it must be the first statement in the module definition file, and you cannot use the LIBRARY statement.

The following example assigns the name `calendar` to the executable program:

    NAME calendar

OS/2 Parameters

Type | Description | /PMTYPE
WINDOWAPI | Presentation Manager application. The application uses the API provided by the Presentation Manager, and must run in the Presentation Manager environment. | PM
WINDOWCOMPAT | Application compatible with Presentation Manager. The application can run inside the Presentation Manager, or it can run in a separate screen group. An application can be of this type if it uses the proper subset of OS/2 video, keyboard, and mouse functions supported in the Presentation Manager applications. | VIO
NOTWINDOWCOMPAT | Application that is not compatible with the Presentation Manager and must run in a separate screen group from the Presentation Manager. | NOVIO

Summary of Module Definition Statements