Example of file-control, COBOL Programming

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.

 

Posted Date: 10/16/2012 3:43:54 AM | Location : United States







Related Discussions:- Example of file-control, Assignment Help, Ask Question on Example of file-control, Get Answer, Expert's Help, Example of file-control Discussions

Write discussion on Example of file-control
Your posts are moderated
Related Questions
CLOSE STATEMENT: When the processing of a file is completed, then the file may be closed. This is completed with the help of the CLOSE-verb. The form of the CLOSE statement is

READ STATEMENT: The aim of this verb is to make available the next logical record from the input file. It is important to note the meaning of the "next" logical record in the

Picture Clause: The picture clause explains the general characteristics of an elementary data item. These characteristics are elaborated below: Class: In COBOL the

Introduction to COBOL: In the year 1959, a new language named the COBOL ( CO mmon B usiness O riented L anguage) was introduced remembering the business purpose application

Example of Class condition: Let the BASIC-PAY be a data name in the card record defined with picture 9(5) V99. By reading the card we can test the value of the BASIC-PAY to ma

Label Records / Disk Directory: The most important information stored in the header label is what is termed as the file title. In the situation of magnetic-disk files the labe

RELATIONAL CONDITION:   We know that a relational condition specifies a comparison between two operands and has the form.     Operand-1    relational-operator   operand-2

I uploaded a file from PC to Mainframe, variable LRCL 256. In my COBOL program I defined it as FD INPUT-FILE LABEL RECORDS ARE OMITTED BLOCK CONTAINS 0 RECORDING MODE

REWRITE STATEMENT: The REWRITE statement has the format for a relative file as shown below, REWRITE record-name  [ FORM identifier ]

What is the difference b/w index and subscript? Subscript indicates to the array occurrence whereas index is the displacement (in no of bytes) from the beginning of the array.