Rules of redefines clause, COBOL Programming

Assignment Help:

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.

 


Related Discussions:- Rules of redefines clause

Block contains and records contains clause, BLOCK CONTAINS CLAUSE: Int...

BLOCK CONTAINS CLAUSE: Integer -1 of the BLOCK CONTAINS clause indicates the block size either in terms of records or in terms of characters. For illustration, BLOCK CONTAINS

Example of perform statement, Example of Perform statement: PERFORM BE...

Example of Perform statement: PERFORM BEGIN-CALCULATION THRU END-CALCULATION. Assume, BEGIN-CALCULATION and END-CALCULTION is paragraph names. The execution of the PERFORM

Negated simple condition, NEGATED SIMPLE CONDITION: Any of the easy co...

NEGATED SIMPLE CONDITION: Any of the easy condition explained can be preceded by the logical operator NOT. The consequence of placing the operator NOT before an easy condition

Program for master file maintenance , PROGRAM FOR MASTER FILE MAINTENANCE: ...

PROGRAM FOR MASTER FILE MAINTENANCE: We have to write a program to keep the stu-file for which a record has just 2 fields,viz., rno(Roll Number) and name(Student Name). Give t

Special-names - configuration section, SPECIAL-NAMES: This paragraph i...

SPECIAL-NAMES: This paragraph is used to associate some hardware names to the user-specified mnemonic names. This paragraph is elective in all compilers. The format of this pa

Occurs clause - program, OCCURS CLAUSE - PROGRAM: We have to write a p...

OCCURS CLAUSE - PROGRAM: We have to write a program to demonstrate the occurs clause. Get names of the students and show them on the screen.  identification division.

Rules for apply for the condition name, Rules for apply for the condition n...

Rules for apply for the condition name: The rules below apply for the condition name. (i) The Condition names should be explained at level 88. The level number starts in ma

File-control - input-output section, FILE-CONTROL: The FILE-CONTROL pa...

FILE-CONTROL: The FILE-CONTROL paragraph names each and every file and identifies the first medium through file control entries. The basic format of a file control entry is gi

Column and field in cobol program, Column and Field in COBOL program: ...

Column and Field in COBOL program: In COBOL there are 2 types of entries termed as margin A and margin B entries. The Margin A entries start from the column 8, 9, 10 or 11 and

Illustration of if- else statement, Illustration of if- else statement: ...

Illustration of if- else statement: IF OK-BALANCE NEXT SENTENCE ELSE MOVE 2 BALANCE-CODE In this illustration, the OK-BALANCE is a condition name. No action is specific if

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd