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

What is amode(24)?

0 Answers  


If we put three reads in COBOL in the same para one after the other, to read a PS file,will it read the same record thrice or it will read three records sequentially? For example : Input File 01 02 03 Para 900 Read infile Display Infile rec Read infile Display infile rec Read infile Display infile rec. What will be the output?

2 Answers  


How do you code Cobol to access a parameter that has been defined in JCL?

3 Answers  


how to access vsam files in cobol and how to differentiate that this is ESDS file

1 Answers   EDS,


01 A pic 9(100) find record length of it

6 Answers   TCS,






Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.

2 Answers  


01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.

15 Answers   ACS,


how we rectify soc7 and soc4 errors in project?

1 Answers   Anaxis, TCS,


wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..

5 Answers   iGate,


What is R-mode and A-mode?

3 Answers   TCS,


I've one string with spaces ( I N D I A ). My question is I want remove the spaces & combine in to single string without space (INDIA).How we can write the cobol program & wich options we need to use. Please let me know.

10 Answers   Mascon,


Categories