Top
NetCOBOL V11.0 COBOL File Access RoutinesUser's Guide
FUJITSU Software

6.2 Line Sequential File INPUT and Indexed File OUTPUT

Overview

This example program opens a particular line sequential file (FCFA02.INP) in INPUT mode and writes the record contents as the record of the indexed file (FCFA02.IDX). Finally, this example program opens the indexed file in INPUT mode and displays it on the screen in the primary record key order.

Compilation procedure

Provide the folder name in the "makefile" according to your environment as follows:

CDIR

The installation folder of the C compiler is set.

COBDIR

The installation folder of the NetCOBOL is set.

Then, enter the following command:

> nmake -f FCFA02.MAK

Execution procedure

Execute this program without using any argument.

> FCFA02

Folder

c:\netcobol\samples\FCFA02