Adding the Data File

The sample program, book.cbl, reads an indexed file to satisfy its I/O requests. You need to add this file to the project. It is located in the archive file that you downloaded previously.

Procedure

  1. In the Application Explorer view, right-click the CobolBook project, and then click Import.

    This opens the Import dialog box.

  2. Expand General, and click File System. Click Next.
  3. Click Browse against the From directory field to locate the folder containing the bookfile.dat file (for example, C:\myfiles\COBOL_JSP_2_2_SRC\CobolBook (Windows), or /home/myfiles/ (UNIX)). Click OK.
  4. Ensure that the entry for bookfile.dat is the only checked item. Click Finish.

    The file is added to the project.

This section completes the creation of the COBOL project.