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
PROGRAM FOR PERFORM - VARYING: We have to write a program to elaborate PERFORM ...VARYING Identification division. Program- id. PerfVary. Environment division. Dat

REDEFINES CLAUSE: At times it may be found that two or more storage regions defined in the DATA DIVISION are not in use concurrently. In such situations only one storage regio

Numeric -   Literals : The numeric literal can be created with the help of digits only. It can have a sign (+ or -) and can also have a decimal point. If no sign is specifi

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

FD Entry for variable-length Records: The RECORDS CONTAINS and BLOCK CONTAINS clause are quite dissimilar in the case of files with variable- length records. The syntax of the

CONDITIONS-NAME CONDITION:   The condition name is an entity which itself is a condition and these can have either a true or false value. Though, a condition name cannot be d

STATEMENTS FOR SEQUENTIAL FILES: A basic operation on a file includes the reading and writing of its records. Whenever the file is sequential, there are three verbs for the

Selection of file Organization: While designing a file, the programmer should select an appropriate association for a file. The order in which the choice is to be made is as s

UPDATING OF THE RELATIVE AND INDEXED FILES: The Sequential files are updated by creating a new master file from an existing old master file and a transaction file. Such an Upda

Example of condition names: The illustration below is of the use of the condition names  77  MARITAL-STATUS     PIC    9   88  SINGLE    VALUE    IS     ZERO   88  MA