Open statement, COBOL Programming

OPEN STATEMENT:

Whenever a READ or a WRITE operation is executed on a file, then it should be open. The opening of a file may be completed with the help of the OPEN verb. With the OPEN verb it should be also indicated whether the file must be opened as an input file or output file. If it is an input file, only the reading is possible, while in the case of an output file, only writing is possible. The file once opened remains open until it is closed by the CLOSE statement. The OPEN statement in its easiest form is as shown below:

1847_open statement.png

 

Posted Date: 10/16/2012 5:33:27 AM | Location : United States







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

Write discussion on Open statement
Your posts are moderated
Related Questions
DISPLAY STATEMENT:   The function of the DISPLAY statement is just opposite to that of the ACCEPT statement. It is used to display the low-volume results on the operator's co

Illustration of Perform with varying option: A) Perform para-3 varying the k from 1 by 1 until k > 10. Here para-3 will be constantly executed 10 times (For k=1,2,3, .....1

ON SIZE ERROR OPTION: Whenever a size error occurs, the contents of the result field after the operation is unpredictable.  Though, the processing is not-terminated and the co

Second form of Divide verb: The second form of this verb is as shown below: In this situation the identifier-1 or numeric- literal-1 will be divided by identifier-2 or

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

Major difference between file and array how does record read from array and file why we are not preparing array for real time

Example of compound condition: In common, a compound condition has the form which is as shown below: Where condition-1 & condition-2 can be any one of the below:

Comparison of Numeric Operands: We are well-known with the kind of the relational condition where both the operands are numeric. The comparison in this situation is algebraic

PROGRAM FOR MOVE CORRESPONDING: We have to write a simple program to demonstrate Move Corresponding. identification division.   program- id.   environment division.

Display control verbs in Cobol