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
what is search and searchall?what is the diffrence between them?give an best example?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
How do you differentiate between cobol and cobol-ii?
Write some characteristics of cobol as means of business language.
What type of SDLC u followed? Why?
What are various search techniques in cobol? Explain.
Have you used comp and comp-3 in your project? And how?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
IF I mention stop run in CICS what happens?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What are the different rules of SORT operation?
How do define dynamic array in cobol.
What is the difference between comp and comp-3 usage?
How to remove 2 duplicate records and copy only one using job control language?
Explain what you understand by passing by value.