Rules of renames clause, COBOL Programming


 The rules below should be observed while using the RENAMES clause:

(i) All RENAMES entries should be written only after the last record description entry.

(ii) The RENAMES clause should be used only with the special level number 66. The level number starts in margin A or any place after it. The Data-name-1 should start from margin B or any position after it. There should be at least one space between the level number and data-name-1.

(iii) The Data-name-2 and data-name-3 can be the names of an elementary items or group items. They, though, cannot be items of the level 01, 66, 77 or 88.

(iv) The Data-name-1 might not be used as the qualifier. It can be qualified only by the name of the record within which it is defined.

(v) Neither data-name-2 nor the data-name-3 can have an OCCURS clause in its neither description entry, nor can they be subordinate to an item which has an OCCURS clause in its data description entry.

(vi) The Data-name-3, if mentioned, should follow data-name-2, in the record and should not be one of its subfields.


Posted Date: 10/17/2012 2:22:28 AM | Location : United States

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

Write discussion on Rules of renames clause
Your posts are moderated
Related Questions
Record Description for the Variable-length Records: When the variable- length records consists of records of various lengths, each record type is to be explained at level 01 f

PROGRAM FOR DIVIDE VERB:   We have to write an easy program to elaborate DIVIDE verb. You can also use edit characters in the program. Identification division. Program-

RULES OF MOVE VERB:  The Data movement is managed by the rules which are as shown below: (a) The contents of the identifier - 1 or the value of the literal - 1 is moved to

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

ARITHMETIC VERBS: Most of the problems need some computations to be performed on the input or intermediate data that are numeric in nature. The Arithmetic verbs are used to pe

DECLARATIVE and FILE STATUS Clause: The input-output exception condition in the situation of a direct access files can be handled by a declarative procedure in a manner simila

Label Records / Disk Directory: The most important information stored in the header label is what is termed as the file title. In the situation of magnetic-disk files the labe

THE SIMPLE SORT VERB: The process of sequencing the records in some preferred manner is termed as sorting. The Sorting is done upon some key data item in the record. For illus

Minus sign - edit characters for numeric data: The minus sign can appear either at the leftmost or rightmost location of the picture. If an item is negative, a minus sign will

MULTIPLY VERB:   The Multiply Verb causes one or more multiplicands to be multiplied by the multiplier and to store the products. The form of the MULTIPLY verb is as shown be