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
Floating Insertion   The currency symbol ($) can emerge in multiples on the left-hand side of the picture. In this situation the character will be treated in similar way as t

How do I move a single QUOTE to a field or set the value clause? "''" does not work?

Illustration of Subtract verb: (a) SUBTRACT A FROM B. This illustration means that the value of A will be subtracted from the value of B and the subtracted result will be s

SEQUENTIAL FILES:   The purpose of the proposed section is to introduce the concepts such as File characteristics, File Description for Fixed-Length Records, File-Control

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

CR and DB (Credit and Debit Sign): The two characters that is CR or DB symbol may appear only at the rightmost place of the picture. They are similar to the minus sign edit ch

Illustration of if- else statement: IF OK-BALANCE NEXT SENTENCE ELSE MOVE 2 BALANCE-CODE In this illustration, the OK-BALANCE is a condition name. No action is specific if

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION (RANDOM MODE): We have to write a program to create an Indexed Sequential File in random mode for Student particulars. Suppose jus

NESTED IF STATEMENT:   The then and else statement of an IF statement can hold other IF statements. The involved IF statements in their turn may also hold other IF statements

Common form of the READ statements: Format 1 is the common form of the READ statements. Format 2 is used when the access mode is either random or dynamic. For illustration,