Rules of redefines clause, COBOL Programming

RULES OF REDEFINES CLAUSE

The rules shown below govern the use of the REDEFINES clause:

(i) The level-number of data-name-1 and data-name-2 should be identical.

(ii) Except when the REDEFINES clause is used to 01 level, the data-name-1 and data-name-2 should be of similar size. In the situation of 01 level, the size of data-name-2 should not exceed that of data-name-2.

(iii) The Multiple redefinitions are allowed. The entries providing the new descriptions should instantly follow the REDEFINES entry. In the situation of multiple redefinitions the data-name-2 should be the data-name of the entry which originally defined the region.

(iv) The REDEFINES clause should instantly follow data-name-1.

(v) Entries giving the new explanations cannot have VALUE clauses (except in the situation of condition-names, that is, 88- level). This means that the data-name-1 or any of this subordinate should not have any VALUE clause.

(vi) The REDEFINES clause must not be used for records (01 level) described in the FILE SECTION. The multiple 01 entry appearance in the record description is implicitly assumed to be the redefinition of the first 01- level records.

(v)  This clause should not be used for the level-number 66 or 88 items.

 

Posted Date: 10/17/2012 7:41:19 AM | Location : United States







Related Discussions:- Rules of redefines clause, Assignment Help, Ask Question on Rules of redefines clause, Get Answer, Expert's Help, Rules of redefines clause Discussions

Write discussion on Rules of redefines clause
Your posts are moderated
Related Questions
PERFORM STATEMENT:   The PERFORM statement can be used to execute the group of consecutive statements written elsewhere in the program. We refer to this group of statements a

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


CLOSE STATEMENT: When the processing of a file is completed, then the file may be closed. This is completed with the help of the CLOSE-verb. The form of the CLOSE statement is

Block Size: The normal practice is to group a number of consecutive records to form that is termed as a block or a physical record. The number of records in a block is frequen

WRITE STATEMENT: The WRITE Statement verb releases a record in an output file. The syntax for the WRITE statement can be unlike depending on the output device and the medium us

Configuration Section: This section holds an overall specification of the computer used for the purpose of the compilation and execution of the program. There are in all 3 par

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

LABEL RECORD CLAUSE: This clause specifies whether or not the standard header and trailer labels must be present in the magnetic-tape files. VALUE OF CLAUSE: The VAL

CONDITION - COBOL Programming: The condition is an entity which at one point of time can have only one of the two values - true or false. As we already know that, the IF verb