What is Redefines clause?

Answer Posted / krishna

Allowcation of more than one data items in a single memory
location.

Ex:
01 a pic x(9).
01 b redefines a pic x(7).

Rules for Redefines

1. Should be different datatype and size
2. Redefined item should not contain value clause
3. Redefing item cantain redefined item
4. Redefines can't write in 66 and 88 level numbers

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2337


Write a cobol program making use of the redefine clause.

738


Have you used comp and comp-3 in your project? And how?

2009


i want a program using by if, evaluate , string, unstring, perform, occurs?

4062


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

859






What guidelines should be followed to write a structured cobol prgm?

673


How to know whether the module is dynamical or statistical?

656


What is the difference between a binary search and a sequential search what are the pertinent cobol?

736


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


When is inspect verb is used in cobol?

679


How do you get the data to code the BMS macro?

1476


) How do u handle errors in BMS macro

1512


What are declaratives and what are their uses in cobol?

714


What are the access modes of START statement?

719


What are literals?

632