example of file-controlthe assign clause assigns


Example of File-control:

The assign clause assigns a specific physical peripheral device name to a file. The physical peripheral device are machine-dependent. We use the device names READER, TAPE, PRINTER and DISK to mean line printer, card reader, magnetic tape and magnetic disk device respectively.

  An illustration of the FILE-CONTROL paragraph is shown below.

FILE-CONTROL.

        SELECT CARD-DESIGN ASSIGN TO READER

        SELECT PRINTER-FILE ASSIGN TO PRINTER.

This paragraph represents that there are 2 files - CARD-DESIGN & PRINTER-FILE.  The file named CARD-DESIGN is a card file whereas the other is a report file to be printed on the line printer.

 

Request for Solution File

Ask an Expert for Answer!!
COBOL Programming: example of file-controlthe assign clause assigns
Reference No:- TGS0174227

Expected delivery within 24 Hours