| |
 |
|
| |
COBOL TUTORIAL
FOR BCA STUDENTS OF M G UNIVERSITY |
|
| |
|
|
| |
 |
|
| |
|
| |
|
| |
The general charateristics of a file are described
in the file description (FD) entry of the DATA DIVISION.
The various clauses in the FD entry spcify the said
characteristics.
|
|
| |
|
| |
|
|
| |
Integer-1 of the BLOCK CONTAIN clause specifies
the block size either in terms of records or in
terms of characters.
|
|
| |
|
| |
This clauses specifies the record size. Integer-2
specifies the number of characters in a record.
|
|
| |
|
| |
This clause specifies whether or not the standard
header and trailer labels should be present in the
magnetic-tape files. The word STANDARD indicates that
the file should have standard header and trailer labels,
while the word OMITTED specifies that the file is
unlabelled.
The LABEL RECORD clause for disk files should be specified
with the STANDARD option while in the case of card
reader and printer files, the clause should use the
OMITTED option.
|
|
| |
|
| |
The VALUE OF clause is entirely implementation-dependent.
In most compilers this clause is used to specify the
file title. The clause in such cases has the form:
|
|
| |

|
|
| |
|
| |
This clause documents the record names defined for
the file. For example, DATA RECORDS ARE REC-1, REC-2,
REC-3 means that there are three different record
descriptions following the FD entry in which this
DATA RECORDS clause is used. There should not be any
conflict between the record names and their numbers
specified in the DATA RECORDS clause and those determined
from the record descriptions.
|
|
| |
|
| |
The CODE-SET clause is used to describe the code in
which the data is recorded on the external medium.
The alphabet name must be specified in the SPECIAL-NAMES
paragraph.
|
|
| |
 |
|
| |
|
|
| |
 |
|
| |
|
|