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
What is a scope terminator give example?
What is the compute verb? How is it used?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
explain sorting techniques in cobol program?
Discuss about changing dataset name in proc.
What is perform what is varying?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Write the code implementing the perform … varying.
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.
) how do u code after getting data?
What is amode(31)
Which division and paragraphs are mandatory for a COBOL program?
What is rmode(24)
what is the use of outrecord?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?