what is the advantage of using redefines instead of
delaring the variables ?
Answer Posted / 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 |
Post New Answer View All Answers
how do you reference the variable unblock file formats from cobol programs
Have you used comp and comp-3 in your project? And how?
What is the difference between goback, stop run and exit program in cobol?
Describe the cobol database components?
What is the local-storage section?
how to refer the data field?
State the various causes of s0c1, s0c5 and s0c7.
Which Search verb is equivalent to PERFORM…VARYING?
What kind of error is trapped by on size error option?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
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.
What is rmode(24)
What is an in line perform? When would you use it? Anything else you wish to say about it.
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?