Renames clause, COBOL Programming

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 only possible in COBOL by the use of the RENAMES clause. The illustration below describes the use of the RENAMES clause.

1865_RENAMES CLAUSE.png

66  PAY-OTHER-THAN-BASIC RENAMES DEARNESS-ALLOWANCE THRU

MTHLY-INCENTIVE

66  IT-AND-PF-DEDUCTIONS RENAMES PF-DEDUCT THRU IT-DEDUCT

 

Posted Date: 10/17/2012 2:18:38 AM | Location : United States







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

Write discussion on Renames clause
Your posts are moderated
Related Questions
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

OPEN statement: We know that the processing of a file should start with the execution of an OPEN statement. The file can be opened in any one of the 4 open modes - INPUT, OUTP

PERFORM WITH TIMES OPTION: The format of a PERFORM TIMES statement is as shown below: Illustration:   A)  Perform the para-2 5 times. In this situation the specifie

ADD and SUBTRACT CORRESPONDING: The CORRESPONDING option can also used with the ADD and SUBTRACT verbs. The following are some of the formats of these verbs with the CORRESPON

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

Example of constructing an arithmetic expression: An arithmetic expression may be proceeded by a + or - sign. These operations are known as unary + or unary - operators. Il

Illustration of indexed tables: Index items defined through the INDEXED phrase of the OCCURS clause are one type of indexes. There can be other type of index items that are de

BLANK WHEN ZERO: BLANK WHEN ZERO is an editing clause that may be used along with a picture. This will set the whole data item to blanks of its value is equal to zero. Though,

PROGRAM FOR ADD CORRESPONDING: We have to write a simple program to demonstrate Add Corresponding.   identification division.   program- id.   environment division.

Example of Write statement: Illustration: (i) WRITE TRANS-RECORD AFTER ADVANCING 3 LINES. This WRITE statement specified that the TRANS-RECORD is a record name of a fi