What is renames clause in COBOL with example?

What is renames clause in COBOL with example?

Renames clause is used to give different names to existing data items. It is used to re-group the data names and give a new name to them. The new data names can rename across groups or elementary items. Level number 66 is reserved for renames.

What is redefine clause in COBOL?

The REDEFINES clause allows the same computer memory area to be described by different data items. ACUCOBOL-GT extends ANSI85 COBOL by allowing a REDEFINES phrase to reference an item that is itself a redefinition of an area.

Which level number we should use for renames clause?

Level number 66
Renames clause is used to give different names to existing data items. It is used to re-group the data names and give a new name to them. The new data names can rename across groups or elementary items. Level number 66 is reserved for renames.

Can COBOL display 88 level?

88 is the level number used for conditional clause . we can check the conditions but conditional codes doesn’t return any codes so we cannot display they conditional code . and still it is used to display the values what we provide according to the given condition it will not display any conditional codes .

What is 77 level used for in Cobol?

77 Level Number Uses, significance:77 is a special Level number in COBOL which is used to declare the Individual Elementary data items. Of course, Individual elementary data items can be declared using 01 level but 77 declared fields does not allow any sub ordinate data field declarations.

What is 88 level used for in Cobol?

Level-number 88 designates a condition-name entry. Level 88s are used to assign names to values at execution time. Thus, a condition-name is not the name of an item, but rather the name of a value. A level 88 doesn’t reserve any storage area.

When to use redefines and renames clauses in COBOL?

RENAMES clause is used for regrouping elementary data items and gives one name to it. REDEFINES clause allows you to use different data descriptions entries to describe the same memory area.

Is the number 66 reserved for renames in COBOL?

Level number 66 is reserved for renames. Renaming is possible at same level only. In the above example, WS-A, WS-B, and WS-C are at the same level. Renames definition must be the next data description you want to rename.

When to use the RENAMES clause in Excel?

Renames clause is used to give different names to existing data items. It is used to re-group the data names and give a new name to them. The new data names can rename across groups or elementary items.

How is pay other than basic renamed in COBOL?

In the above example, PAY-OTHER-THAN-BASIC will become a new group consisting of DEARNESS-ALLOWANCE, HOUSE-RENT, and MNTHLY-INCENTIVE. Note that the new group overlaps on two original groups, namely, part of FIXED-PAY and the entire ADDITIONALPAY.

Back To Top