This topic outlines how to create COBOL source and copybook
files. Files can be created using a template, which can be user-defined,
but some useful predefined templates are also available.
About this task
To create a COBOL file:
Procedure
- In the Project Explorer view, right-click a project,
and select New > AIX® COBOL
File.
- Choose the file type. Either COBOL source or COBOL
copybook. This will determine the valid set of file extensions
and code templates.
- Type the file name into the File name box, and choose
or type the file extension in the combo box.
- If you wish to initialize your file from a template, enable Initialize
the file content from a template.
- Select the template that you would like to use from
the list on the left. If you would like to create, edit, or import/export
a template click Configure, which will bring you to the AIX COBOL Code Templates preference
page.
- Click Finish. Your new file will be added to your
project and opened in the editor.