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
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

PROGRAM FOR PERFORM - VARYING: We have to write a program to elaborate PERFORM ...VARYING Identification division. Program- id. PerfVary. Environment division. Dat

Example of Write statement: Illustration: (i) WRITE TRANS-RECORD AFTER ADVANCING 3 LINES. This WRITE statement specified that the TRANS-RECORD is a record name of a fi

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

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

Example of Nested if statement: Illustration: Consider the following sentence The nested IF sentence holds two IFs and one ELSE. The IF-ELSE couple has been marke

DATA RECORD CLAUSE: The DATA RECORD clause, documents the record names defined for the file. For illustration, DATA RECORDS ARE REC-1, REC-2, REC-3 that means there are 3diffe

OPEN statement: We know that the processing of a file should start with the execution of an OPEN statement. The file can be opened in any one of the 4 open modes - INPUT, OUTP

Data Names and Identifiers:   The Data name provides reference to the storage space in the memory where the real value is stored. This value takes part in the operation whene

Picture Clause: The picture clause explains the general characteristics of an elementary data item. These characteristics are elaborated below: Class: In COBOL the