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
Example of read statement: Illustration: READ OLD-MASTER AT END MOVE ZERO TO END-OF-RECORDS. As a result of this statement, generally the next record from the OLD-MAST

LABEL RECORD CLAUSE: This clause specifies whether or not the standard header and trailer labels must be present in the magnetic-tape files. VALUE OF CLAUSE: The VAL

RENAMES CLAUSE: At times re-grouping of an elementary data items in a record may be essential so that they can belong to the original as well as to the latest group. This is o

DELETE STATEMENT : The file should be opened in the I-O mode. If the access is SEQUENTIAL, the INVALID KEY phrase must be specified. Rather than, the last input-output state

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 descript

Data Names and Identifiers:   The Data name provides reference to the storage space in the memory where the real value is stored. This value takes part in the operation whene

SIGN CONDITION:   The sign condition establishes whether or not the algebraic value of an operand is negative, positive or zero. The operand can be either the numeric identif

COMPUTE VERB: The COMPUTE verb is very powerful. All the evaluations performed by the other 4 verbs can also be completed easily by using the COMPUTE verb. Its normal format i

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION: We have to write a program to create an Indexed Sequential File in a dynamic mode for Student particulars. Suppose just 3 fields:

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