Rewrite statement - relative files, COBOL Programming

REWRITE STATEMENT:

The REWRITE statement has the format for a relative file as shown below,

REWRITE record-name  [ FORM identifier ]

                                      [  ;   INVALID  KEY   imperative -statement  ]

The REWRITE statement is used to substitute an existing record by the contents of the record specified in the record name. The file should be opened in the I-O mode.

 

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







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

Write discussion on Rewrite statement - relative files
Your posts are moderated
Related Questions
FILE-CONTROL paragraph for the indexed files: The common format for the SELECT clause for a file is as shown below: SELECT  file-name  ASSIGN   TO  implementor -name

WRITE Statement:      The WRITE statement for a relative file has the format which is as shown below.          WRITE  record-name   [ FORM   identifier ]

LEVEL NUMBERS: The COBOL makes use of the level number concept to explain the hierarchical data structure. A level number is a 2 digit number. The permitted level numbers a


Object-Computer - Configuration section: The computer name specifies a specific computer on which the object program is to be executed. The MEMORY SIZE is used to show the

Minus sign - edit characters for numeric data: The minus sign can appear either at the leftmost or rightmost location of the picture. If an item is negative, a minus sign will

PROGRAM FOR DIVIDE VERB:   We have to write an easy program to elaborate DIVIDE verb. You can also use edit characters in the program. Identification division. Program-

NONSTANDARD CLAUSES: The various clauses explained above are as per the ANSI standard. Also, most compilers provide for additional nonstandard clauses to meet the specific nec

PROGRAM FOR MASTER FILE MAINTENANCE: We have to write a program to keep the stu-file for which a record has just 2 fields,viz., rno(Roll Number) and name(Student Name). Give t

PROGRAM FOR PERFORM ...UNTIL We have to write a program to find the sum of "n" natural numbers. Identification division. Program- id. PerfUntil. Environment division.