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
PROGRAM FOR SIZE ERROR:   We have to write an easy program to elaborate the size error option. Identification division. Program- id. sizeerr. Environment division.

OCCURS CLAUSE - PROGRAM: We have to write a program to demonstrate the occurs clause. Get names of the students and show them on the screen.  identification division.

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

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

Example of Perform statement: PERFORM BEGIN-CALCULATION THRU END-CALCULATION. Assume, BEGIN-CALCULATION and END-CALCULTION is paragraph names. The execution of the PERFORM

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 Renames clause: In the illustration, PAT-OTHER-THAN-BASIC will become a fresh group consisting of DEARNESS-ALLOWANCE, HOUSE-RENT & MTHLY-INCENTIVE. Keep in min

INDEXED TABLES: The OCCURS clause that is used to define tables can optionally have an INDEXED phrase. This phrase involves the names of data items which are to be used as sub

Example of constructing an arithmetic expression: An arithmetic expression may be proceeded by a + or - sign. These operations are known as unary + or unary - operators. Il

PROGRAM FOR SUBTRACT VERB: We have to write a simple program to elaborate the SUBTRACT verb. You can also use edit characters in the program. Identification division. Pr