Give some advantages of REDEFINES clause?

Answer Posted / mahathiaz

1. You can REDEFINE a Variable from one PICTURE class to
another PICTURE class by using the same memory
location.
2. By REDEFINES we can INITIALISE the variable in
WORKING-STORAGE Section itself.
3. We can REDEFINE a Single Variable into so many sub
variables. (This facility is very useful in solving Y2000
Problem.)

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between comp and comp-3 usage?

681


What is the difference between PIC 9.99 and PIC9v99?

781


Explain what you understand by passing by value.

702


What is comp-1 and comp-2?

764


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






How do you differentiate between cobol and cobol-ii?

658


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

720


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1657


) How do u handle errors in BMS macro

1512


What is a report item?

741


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


What are declaratives and what are their uses in cobol?

714


What is a scope terminator give example?

657


What are various search techniques in cobol? Explain.

650


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676