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
- In the
Application Explorer view, right-click the
CobolBook project, and then click
Import.
This opens the
Import dialog box.
- Expand
General, and click
File System. Click
Next.
- 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.
- 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.