what is the advantage of using redefines instead of
delaring the variables ?
Answers were Sorted based on User's Feedback
Answer / kavithachandrashekar
Redefines is basically used to occupy same same storage space for different data items.In this case if we declare new variable then there is wastage of memory
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / m r reddy
--Redefines is used to re-use the storage space irrespective of the data type.
--Using redefines more than one field can re-use the same memory.
Ex: 01 a pic x(5) value 'xyz12'.
01 b redefines a pic x(3).
Here a=xyz12 value is stored and
b=xyz value is stored. B is reuse the A's Memory
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / deepak kumar
redefines saves the memory by referring the same memory location by other data items.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sriram
redefines is a clause which is used for predefined storage space for other variables without wastage of space.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / joshin
redifine will used to change the pic clause of already
declared variable.
| Is This Answer Correct ? | 2 Yes | 6 No |
how to transfer the file from pc to mainframe??
How is sign stored in a COMP field ?
can any one help -s806
if a pic 9(3) value 354,b pic x(2) value '46' then a)a>b 2)a<b 3)error
Explain about different table spaces.
How can you add a particular field in copybook?
what is a zoned decimal data type and how it will be stored?
if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.
What kind of error is trapped by on size error option?
Explain fixed length record in cobol? with suitable example
What is the difference between a binary search and a sequential search?
should I use Go back in the main program ? Yes we can use Go back in main program as well.