An AIX® COBOL project
contains your source code and related files. The project provides
many useful tools, such as automatic building, synchronization with
the AIX machine, debugging,
code navigation/editing, source control, and more.
About this task
To create an AIX COBOL
project:
Procedure
- Select File > New > AIX COBOL
Project. The AIX COBOL project
wizard will open.
- Choose the project type. Synchronized will create
a local copy of your project and keep it synchronized with the remote
location -- you will need this type if you wish to use source control,
such asRational® Team
Concert,
or if you want to work offline. Choosing Remote Only means
editing files in the project will directly edit the file in the remote
location, no local copy is maintained. Network File System should
be used if you wish to make use of a remote file system such as NFS
or Samba. Click Next. The next page will depend on the project
type you choose:
- For Synchronized projects, enter the Project Name and
Remote Location. Push on save will push changed files to their
remote location every time they are saved and Push on build will
push changed files to their remote location every time a project build
is done. These can be changed later. Pull from remote on project
creation will download all source files from the remote location
on project creation
- For Remote Only projects, enter the Project Name and
Remote Location.
- For Network File System enter the Project Name, Remote
Location, and Location. The Location (on local machine) and Remote
Location (on remote machine) must refer to the same location over
the remote network file system. The Validate mount location will
help ensure this is done correctly.
- Click Finish to create the project, or click Next to
change any of the optional settings on the next pages.
- Select Build Options for the project. Build directory is
the location the build is run in. The default is ".", meaning the
project location. A path can be appended to "." to make it relative
to the project location, or starting with "/" will make it an absolute
path.Click Next.
- Select Add a template makefile to the project to
add a template makefile to build your project, if you don't already
have a makefile. There are a list of templates to choose from, and
all are well commented to make it easy to edit it for the particular
needs of your project. The makefile will be created and added to your
project, and will in a file named "makefile".Click Next.
- Specify the list of directories to search copybooks. Copybooks
are found automatically from information provided by the build, so
this should only be needed if the project cannot be built.Click Next.
- If you use any preprocessors, you can use this page to
make the editor aware of where the post-processed files are, so the
editor can resolve the actual COBOL code, making the editor behave
better with your code that has non-standard COBOL preprocessor statements.
Preprocessors are run in order, so if you have a chain of preprocessors
you should define them in the correct order from top to bottom.
- Click Finish.
Results
Alternatively, you can select the desired remote location
in the Remote System Explorer view, right-click, and select
Import
to AIX COBOL Project. This
will start the wizard, as above, but the remote location will be filled
in.