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 STATUS clause: This clause has been involved in the above syntax for completeness. The ORGANIZATION, REVERSE, ACCESS and STATUS clause can be specified in any order.

Example of Accept statement: For illustration, ACCEPT FLAG-A can be specified to read the value of the FLAG_A from the console. It may be keep in mind that no file definition

SIGN CONDITION:   The sign condition establishes whether or not the algebraic value of an operand is negative, positive or zero. The operand can be either the numeric identif

Comparison of Nonnumeric Operands: A nonnumeric operand can be compared to the other nonnumeric operand according to the rules as shown below: (i) Fields of Equal Sizes:

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

Example of If- else statement Illustration:   IF   QUANTITY IS NUMERIC AND QUANTITY IS POSITIVE          MOVE ZERO TO ERROR-CODE. COMPUTE SALES VALUE=QUANTITY*RATE

Examples - Edit characters for numeric data: The following illustration illustrates the use of Z editing characters. The character b is used to indicate the space character an

COMPOUND CONDITION: The two simple conditions can be connected by the logical operators AND or OR to form a compound condition (also termed as combined condition). When two co

Size: The number of characters or digits needed to store the data item in the memory in termed as the Size of the data item. All the 4 general characteristics explained can

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