what is redefines? where it can be effectively use for the
purpose of memory utilization? give an example?
Answers were Sorted based on User's Feedback
Answer / siri
REDEFINES:-REUSE THE SPACE FROM FIRST BYTE ON WORDS....REDEFINES AND REDEFINING FIELDS MUST BE AT SAME LEVEL NOS..REDEFINING THE MEMORY MUST BE SAME OR SORTER...
FOR EXAMPLE 1000 BALLS IS THERE..EACH BALL CAST IS 10 RS/-...BUT I HAVE ONLY 10 RS/-...BUT I USE THE ALL 1000 BALLS HOW MEANS USING THE REDEFINES....
WORKING-STORAGE SECTION.
01 A PIC X(100) VALUES '******************************'
01 B REDEFINES A X(10)
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / yuddam
01 a pic 9(6).
01 b redifine a pic 9(6).
01 c redifine a pic 9(6).
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / suman
Redifine is a clause which reuses the existing storage space
1)redifine must be coded immediate after orginal dataname.
2)level no must be same as orginal data name.
3)level no should be 01-49.
4)data tpye length must be same.
ex:
01 a pic 9(6).
01 b redifine a pic 9(6).
01 c redifine b pic 9(6).
| Is This Answer Correct ? | 4 Yes | 8 No |
I want to declare a field with data type Double in my COBOL program. how shall i do that ?
What is SDSF?
What is Static,Dynamic linking ?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
I want ALL jcl ERROR cods
What is difference between COBOL and VS COBOL II?.
how you will define variables length in cobol.
Why would you use find and get rather than to obtain?
perform I from 0 by 1 until I=5?How maney times it will executes
01 a pic s9(5) value '-12345' how it will be stored
what is s000 u4087 error? please give the all error codes in cobol,jcl.
which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast