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 PIC 9.99 and 9v99 in COBOL?

739


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

648


Difference between cobol and cobol-ii?

719


how do you reference the printer file formats from cobol programs

673


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

728






Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5071


what is search and searchall?what is the diffrence between them?give an best example?

5583


Write the code to count the sum of n natural numbers.

705


Why occurs cannot be used in 01 level in COBOL?

723


How you can read the file from bottom?

667


What are the pertinent COBOL

2053


What is an in line perform? When would you use it? Anything else you wish to say about it.

651


In COBOL programming, what is PERFORM? What is VARYING?

676


What is the difference between PIC 9.99 and PIC9v99?

789


how do you reference the esds vsam file formats from cobol programs

640