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 |
can we use go to statement inline-perform?
What guidelines should be followed to write a structured cobol prgm?
In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.
u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?
Name the divisions, which are available in a cobol program?
what happens if we dont close cursor in db2-cobol pgm?
How do u know what version of cobol u are using?
what is S04E error in jcl?
11 Answers IBM, L&T,
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
A LESS 1200 IF B GREATER 25 MOVE 47 TOC ELSE MOVE 57 TO C IF A GREATER 249 MOVE 67 TO C ELSE NEXT SENTENCE ELSE IF B LESS 67 MOVE 27 TO C What will be the value of C, when A is 137 and b is 25
Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.
How arrays can be defined in COBOL?