Creating COBOL files

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

  1. In the Project Explorer view, right-click a project, and select New > AIX® COBOL File.
  2. Choose the file type. Either COBOL source or COBOL copybook. This will determine the valid set of file extensions and code templates.
  3. Type the file name into the File name box, and choose or type the file extension in the combo box.
  4. If you wish to initialize your file from a template, enable Initialize the file content from a template.
    1. 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.
  5. Click Finish. Your new file will be added to your project and opened in the editor.

Feedback