what is redefines? where it can be effectively use for the
purpose of memory utilization? give an example?
Answer Posted / 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 |
Post New Answer View All Answers
how can i see junk values in dclgen or in hostvariable of comp ?
What are all the divisions of a COBOL program?
What are the different data types in cobol?
Discuss about changing dataset name in proc.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What is the difference between perform … with test after and perform … with test before?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
How you can characterize tables in cobol?
What is comp-1 and comp-2?
For rewrite, why is it mandatory that file needs to be opened?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What is amode(31)
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How arrays can be defined in COBOL?
What is static and dynamic call in cobol?