Delete statement, COBOL Programming

DELETE STATEMENT:

The format of the delete statement is as shown below:

DELETE   file-name RECORD   [  ;   INVALID   KEY  imperative-statement  ]

Whenever the ACCESS MODE IS SEQUENTIAL the execution of the DELETE statement should be preceded by the execution of a READ statement on the file and the INVALID KEY phrase must not be specified.

 

 

Posted Date: 10/17/2012 8:16:36 AM | Location : United States







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

Write discussion on Delete statement
Your posts are moderated
Related Questions
Occurs Clause: Let us establish tables with the help of an illustration. Assume that there are ten different types of income-tax rates that are read from some input medium and

Group Item as Operand in the Relational Condition: Whenever an operand of a relational condition is the group item, the item is then considered to be an alphanumeric field. Th

BLANK WHEN ZERO: BLANK WHEN ZERO is an editing clause that may be used along with a picture. This will set the whole data item to blanks of its value is equal to zero. Though,

SEQUENTIAL FILE CREATION AND REWRITING: We have to write a program to create a student file with just two fields: sno i.e. Student Number and same i.e. Student Name. Add a few

Name the divisions in a COBOL program are given below DENTIFICATION DIVISION DATA DIVISION ENVIRONMENT DIVISION PROCEDURE DIVISION.

CLOSE STATEMENT: When the processing of a file is completed, then the file may be closed. This is completed with the help of the CLOSE-verb. The form of the CLOSE statement is

Introduction to COBOL: In the year 1959, a new language named the COBOL ( CO mmon B usiness O riented L anguage) was introduced remembering the business purpose application

NEGATED SIMPLE CONDITION: Any of the easy condition explained can be preceded by the logical operator NOT. The consequence of placing the operator NOT before an easy condition

Example of Move corresponding: Consider the DATA DIVISION entries shown below. Suppose it is needed that the data stored in the 4 fields of the PAY_REC should be

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