Command Files and Compiler Settings

You can compile or build your source files individually or by using command files.

Command files are typically DCL procedures that you most likely have been using with an existing project outside NetBeans. Such files may contain many environment-specific settings that you require in order to compile or build your project successfully.

Command File Example

You can specify command files at the global, project, or individual file level. (For command file settings to be active, the Use Command File property checkbox at the User, Project or file level must be checked.)

  To specify command file settings at the global or project level
From the Tools menu, select Options. Expand the Building folder and the Compiler Types node and select from your 3GL language property sheets.

  To specify command file settings at the file level

Select a 3GL language file from Filesystems and select the Remote Properties command from the View menu or right-click the file and select Properties.

Once you have selected to use a command file, you have to specify properties, including the file's specification and a build (output) directory specification.

For this example, the DCL command that is issued is as follows:

$ @efs$:[user]buildhelloworld.com efs$:[user]main.cob

An example of contents of the command file is as follows:

$! buildHelloWorld.com
$!
$! Created on March 22, 2005, 3:42 PM
$!
$! Author
$!
$ COBOL /list /analysis /object=EFS$:[USER] 'P1'