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



what is redefines? where it can be effectively use for the purpose of memory utilization? give an ..

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

what is redefines? where it can be effectively use for the purpose of memory utilization? give an ..

Answer / raghu

hi suman,redfined item cannot be redfined again.

Is This Answer Correct ?    1 Yes 0 No

what is redefines? where it can be effectively use for the purpose of memory utilization? give an ..

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

what is redefines? where it can be effectively use for the purpose of memory utilization? give an ..

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

Post New Answer

More COBOL Interview Questions

Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?

1 Answers  


IF there 5 to 6 files in a JCL and there is some space abends, how can we identify which file has space abend and what can be done to get off that abend or rectify that abend.

2 Answers   ADNA, CSC,


How to Write the RESTART Logic Using COBOL?

4 Answers   GalaxE, L&T, Syntel, TCS,


What is the maximum length of a field you can define using COMP-3 in COBOL?

1 Answers   UGC Corporation,


How do you get the data to code the BMS macro?

0 Answers   IBM,


Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $

4 Answers  


When is inspect verb is used in cobol?

0 Answers  


can we read in input the file with a variable length ? please , how ..could you help me ?

3 Answers   EDS,


How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp

3 Answers   CTS,


what is ASRA, AEY9?

2 Answers   IBM,


88 class is used for

5 Answers   CTS, EDS,


how will u code parm parameter and where pls ?

3 Answers   DELL,


Categories