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 |
Why IBM?
what are the paramater we cannot use in procedure?how many instream we can write in single jcl?can we call instream to catalog and ctalog to instream?
Write a program to concert an Indexed file into Sequential file?
I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot..
Write down the divisions of cobol program?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How to delete leading spaces/blank in COBOL ? Example:- 01 data-name-1 pic x(220) " English is a language". I would like to delete leading spaces.
how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas
In an EVALUATE statement, can I give a complex condition on a when clause?
wht r the advantages of 77 level number ?
How you can read the file from bottom?
I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?