Home > Software > Mainframe > Cobol
Interview Questions   Tutorials   Discussions   Programs   

Cobol - What is Redefines clause?




361
views
asked mar August 3, 2014 12:46 AM  

What is Redefines clause?


           

1 Answers



 
answered By Mswami   0  
REDEFINES:

The REDEFINES clause allows you to use different data description entries to describe the same computer storage area. Redefining declaration should immediately follow the redefined item and should be done at the same level. Multiple redefinitions are possible. Size of redefined and redefining need not be the same.


Example:
	01 WS-DATE PIC 9(06).
	01 WS-REDEF-DATE REDEFINES WS-DATE.
		05	WS-YEAR	PIC 9(02).
		05	WS-MON	PIC 9(02).
		05	WS-DAY	PIC 9(02).


flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert