What is redefine clause?

What is redefine clause?

The REDEFINES clause allows you to use different data description entries to describe the same computer storage area. If data-name-1 or FILLER is not specified, the REDEFINES clause must be the first entry following the level-number. …

What is the use of Redefines?

Redefines clause is used to define a storage with different data description. If one or more data items are not used simultaneously, then the same storage can be utilized for another data item. So the same storage can be referred with different data items.

How do you use redefines in COBOL example?

Example. 01 ITEM-1 PIC 9(5) USAGE DISPLAY. 01 ITEM-2 REDEFINES ITEM-1 PIC 9(03) USAGE COMP-3. You can redefine the redefined data item any number of times but you cannot redefine the redefining item.

Can we use redefines clause in occurs clause?

Re: Redefines clause in occurs clause WE CAN REDEFINE A DATA ITEM HAVE AN OCCURs CLAUSE. but we cannot redefine a data item having occurs clause.

What is another word for Redefine?

What is another word for redefine?

reconceive reanalyze
reweigh rework
readdress reassess
reconceptualize recontextualize
reimagine respecify

What is the purpose of 77 level number?

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.

How do I read a mainframe copybook?


  1. Select a copybook name in a program file open in the editor.
  2. Right-click and select View Copy Member from the menu. The copybook opens in the editor.
  3. If you modify the file, you are prompted to save the file with another name. Note: The Save as feature cannot be used to create a member or sequential data set.

Can we redefine Comp 3 Variable?

There is no way to use only redefines and get what you want. . . To get what you want, create a 9(13) field in ws and move EMP-NBR-1 to it. Redefine the 9(13) field with 2 other fields – the first 9(10) and the second 9(3).

What is the difference between renames and redefines in COBOL?

REDEFINES VS RENAMES: 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.

Can also mean to imagine?

Frequently Asked Questions About imagine Some common synonyms of imagine are conceive, envisage, envision, fancy, realize, and think. While all these words mean “to form an idea of,” imagine stresses a visualization.

What’s another word for reimagine?

What is another word for reimagine?

rethink reconsider
reevaluate reexamine
reexplore reweigh
reassess revise
rework retrace

Which is the redefining clause in COBOL mainframe?

Here Var-1 is the redefined and Var-2 is the redefining item. Redefining item should not contain a value clause where as redefined item can have a value clause as shown above. 2. One or more redefines are permitted.

When is the REDEFINES clause must not be specified?

In such level-01 entries, the REDEFINES clause must not be specified. When the data item implicitly redefines multiple 01-level records in a file description (FD) entry, items subordinate to the redefining or redefined item can contain an OCCURS DEPENDING ON clause.

Can a redefining item have the same value as a redefined item?

A redefining item will always have the same value as a redefined item. REDEFINES clause cannot be used for level numbers 66 and 88. REDEFINES may not be used in a level 01 entry in the File Section. Number of characters need not be the same for Redefined Item and Redefining Item.

How are redefines used to reduce memory space in COBOL?

In this way, different data items can refer to the same memory location to reduce the memory space and the program is easier to maintain as well. For instance, you can store a alphanumeric & a numeric data type at the same location using the Redefines in COBOL.

Back To Top