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
Edit Characters for Numeric Data: The characters below can be used in the PICTURE clause to indicate the editing.   Z    *  $  -    +    CR    DB    .    ,    B    O    /

calculate simple interest

Rules of read statements: The next record is identified according to the rules as shown below: (i) Whenever the READ NEXT statement is the initial statement to be executed

File Activity: The file activity is a measure of the proportion of records processed during an update run. Therefore we define the activity ration as shown below. Activi

Picture Clause: The picture clause explains the general characteristics of an elementary data item. These characteristics are elaborated below: Class: In COBOL the

Illustration of Divide verb: (a) DIVIDE 5 INTO A. If the value of A is 20, then after execution of this statement the value of A will be 4. The older value of A will be los

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

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

Plus Sign - edit characters for numeric data: + (Plus Sign) : A plus sign is alike to minus sign except that when the item is positive, +sign will be inserted rather th

TO WRITE A QUADRATIC EQN ROOTS ARE COMPLEX IN COBOL PROGRAM