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
can we move spaces to numeric field

we have input file ,record layout is EMP ID (6 char) , EMP NAME (20 char), Designation (3 char),Salary (5 digit) Base Branch (10char) Grade (3 Alphanumeric). This is the input file

INDEXED SEQUENTIAL FILES: In the indexed sequential files which are also known as indexed files, the records are stored in the sequence order generally in ascending order. In

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

Sign - Picture clause: The numeric data item can be signed or unsigned. If a numeric data is regarded as unsigned then during the execution these unsigned data items are treat

Example of Open statement: Illustration: The OPEN INPUT TRANSACTION, OLD-MASTER OUTPUT NEW-MASTER. The illustration represents that there are two input files named the

File volatility: File volatility associates to the number of times the updating of records are needed during some time period. File interrogation: Some files hold re

PROGRAM FOR SCREEN SECTION WITH FILES: identification division.   program- id.   environment division.          input-output section.   file-control.     select

PROGRAM USING OCCURS CLAUSE: We have to write a simple program to demonstrate Occurs Clause. Get the employee details for 3 persons and compute the total salary. identifica

Buffers: The Modern computers are able of handling I-O operations independent of the CPU by means of the hardware termed as data channel. For illustration, if two buffers a