Close statement - sequential files, COBOL Programming

CLOSE statement:

The simplified syntax of the CLOSE statement is as shown below:


CLOSE          file-name-1   [WITH   LOCK   ]


                      [  , file-name-2   [WITH   LOCK   ]    ] ...

The CLOSE statements terminate the processing of the file. 



Posted Date: 10/17/2012 8:05:32 AM | Location : United States

Related Discussions:- Close statement - sequential files, Assignment Help, Ask Question on Close statement - sequential files, Get Answer, Expert's Help, Close statement - sequential files Discussions

Write discussion on Close statement - sequential files
Your posts are moderated
Related Questions
FILE DESCRIPTION- FIXED-LENGTH RECORDS: The normal characteristics of a file are explained in the file description (FD) entry of the DATA DIVISION.

single program how may when statement has used

REWRITE STATEMENT: As in the situation of a relative file, the REWRITE statement needs that the file should be opened in the I-O mode, and if the SEQENTIAL access mode is spec

Transaction file : A transaction file is a file which contains new records those changes to old records which are used to update the master file. The problem of file updatio

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 devic

THE SIMPLE SORT VERB: The process of sequencing the records in some preferred manner is termed as sorting. The Sorting is done upon some key data item in the record. For illus

Abbreviation: The Consecutive relational conditions in a compound condition can be abbreviated in many cases as shown: (i) When the subjects in the consecutive relational c

OCCURS CLAUSE - PROGRAM: We have to write a program to elaborate occurs clause. Get names and marks of the students and show them on the screen.   identification division.

Common form of the READ statements: Format 1 is the common form of the READ statements. Format 2 is used when the access mode is either random or dynamic. For illustration,

READ STATEMENTS: The common format for the read statements is as shown bellow. Format 1: READ file-name RECORD [ INTO   identifier ] [  ;  AT   END     imperative-s