Rules of renames clause, COBOL Programming

RULES OF RENAMES CLAUSE:

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

Data types available in COBOL are given below Alpha-numeric (X), numeric (9), alphabetic (A)

SEARCH VERB: The SEARCH verb is used to position elements in one-dimensional tables. Let us consider the following problem. Assume that each element of a table consists of thr

Major difference between file and array how does record read from array and file why we are not preparing array for real time

COMPOUND CONDITION: The two simple conditions can be connected by the logical operators AND or OR to form a compound condition (also termed as combined condition). When two co

Example of Redefines clause: This illustration describes a sales record that may either contain the total amount of sale or the quantity (QTY) and UNIT-PRICE. The aim of such

ACCEPT STATEMENT: The ACCEPT statement is used to read the low-volume data from the operator's console, several other hardware device or from the operating system. The common

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

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

PROGRAM FOR COMPUTE VERB: We have to write an easy program to elaborate the COMPUTE verb.  Identification division. Program- id. compverb. Environment division. Da