| |
 |
|
| |
COBOL TUTORIAL
FOR BCA STUDENTS OF M G UNIVERSITY |
|
| |
|
|
| |
 |
|
| |
|
| |
|
| |
The charateristics of each of the files handled in
a program are specified in the ENVIRONMENT DIVISION
and DATA DIVISION. Those characteristics that depend
primarily on the input-output device and the computer
system are described in the ENVIRONMENT DIVISION,
while characteristics that are of a general nature
are described in the DATA DIVISION.
Most of the characteristics to be specified in the
ENVIRONMENT DIVISION are described by means of the
clauses in the SELECT entry of the FILE-CONTROL paragraph.
The remaining specifications are placed in the I-O-CONTROL
paragraph.
|
|
| |
|
| |
|
|
| |
This clause specifies the number of buffersto be
used for the file. Integer-1 indicates this number.
|
|
| |
|
| |
These two clauses indicate that the said file is organized
as a sequential file and will be accessed sequentilly.
Both the clauses are optional and if omitted, sequential
organization and sequential access mode is assumed.
|
|
| |
|
| |
When this clause is specified, a value is moved into
the data name by the operating system every time an
input-output statement is executed. The data name
should be defined in the DATA DIVISION as a two-character
alphanumeric field. The value that is moved in the
data name indicates whether the current input-output
statement is successfully completed or an exception
condition arises during the operation.
A value 00 denotes a successful completion, 10 denotes
AT END condition, etc.
|
|
| |
|
|
| |
 |
|
| |
|
|
| |
 |
|
| |
|
|