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
Picture Clause: The picture clause explains the general characteristics of an elementary data item. These characteristics are elaborated below: Class: In COBOL the

Point Location: The position of the decimal point is the other characteristic which can be specified in the case of the numeric data items. If the position is not specified, t

PERFORM WITH TIMES OPTION: The format of a PERFORM TIMES statement is as shown below: Illustration:   A)  Perform the para-2 5 times. In this situation the specifie

START STATEMENT: The START statement places the files to the initial logical record whose record key satisfies the condition specified by the KEY phrase. The access mode shoul

PERFORM STATEMENT:   The PERFORM statement can be used to execute the group of consecutive statements written elsewhere in the program. We refer to this group of statements a

PROCEDURE DIVISION statements for the indexed files: All the statements which are available for a relative file are also available for an indexed file. READ STTATEMENT :

Illustration of simple sort verb: Illustration: Suppose that we have a card file with the following records description in the data division. The names of the work fil

Example of If- else statement Illustration:   IF   QUANTITY IS NUMERIC AND QUANTITY IS POSITIVE          MOVE ZERO TO ERROR-CODE. COMPUTE SALES VALUE=QUANTITY*RATE

Configuration Section: This section holds an overall specification of the computer used for the purpose of the compilation and execution of the program. There are in all 3 par

When using the accept verb in cobol is it possible to assign something other then "SYSIN" for a ddname?