Compiling Files in a 3GL Project

See Also
Navigating Compilation Errors

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

   To compile an individual source file

1.  In the Filesystems tab, right-click on the source file.
2.  Select Remote Compile.
 

   To change compilation options for an individual file

1.  Select the file.
2.  Right click and select Remote Properties.

 

   To execute a command file

1.  Right-click on a command file (typically a DCL procedure) that you want to use for compiling and/or linking your source files.
2.  Choose the Remote Execute command.

This executes whatever compile, build, or link instructions are contained within the command file.

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.

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 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'