Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the REDEFINES clause?
Answer: The REDEFINES clause in COBOL is used to share storage between two or more data items. It allows multiple data descriptions for the same physical storage.

Example:

01 EMPLOYEE-NAME PIC X(20).
01 EMPLOYEE-NAME-REDEFINED REDEFINES EMPLOYEE-NAME PIC 9(9).
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook