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

SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.

2 Answers   Wipro,


Can we use goto statement in inline_perform ?

5 Answers   IBM,


how do u link sub pgm to main pgm ?

2 Answers   TCS,


u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?

2 Answers   IBM,


when COMP-3 is preferrable?

3 Answers   Patni,






i have a file which contains records like 10,30,90,50,20,40,80,60,70 i want to display these records in reverse order like 70,60,80,40,20,50,90,30,10 please give me the cobol code (do not sort the records)

3 Answers   Cap Gemini, Mind Tree,


Can we access the a[0] in the array ?

6 Answers   DCL, IBM,


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


What is difference between COBOL and VS COBOL II?.

1 Answers   Winsol Solutions,


What type of Call you would use if you don;t want the control back to the calling program?

8 Answers   TCS,


88 class is used for

5 Answers   CTS, EDS,


How do you define a variable of comp-1 and comp-2?

0 Answers  


Categories