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

How many maximum number of procedures can we write in one COBOL program?

6 Answers  


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

0 Answers   IBM,


What does MAXCC 3 means? It is used in one my codes.

2 Answers   Wipro,


is this below syntax correct? CALL 'subprg' using A,B Please help

2 Answers  


Whats the use of Examine command? can someone help me?

1 Answers   IBM,


what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

5 Answers   TCS,


Is It Possible to Update or change in VIEW Mode?

5 Answers   CSC,


when COMP-3 is preferrable?

3 Answers   Patni,


Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END-OF-FILE-SWITCH PIC XXX. 88 NO-MORE-RECS VALUE "YES". 88 MORE-RECS VALUE "NO". (i) READ SAMPLE-FILE AT END MOVE "YES" TO NO-MORE-RECS. (ii) IF NO-MORE-RECS = "YES" GO TO LAST-PARA. (iii) IF NO-MORE-RECS GO TO LAST-PARA. Which are wrong? (a) (i) and (ii) (b) (ii) and (iii) (c) (i) and (iii) (d) all

5 Answers   TCS,


If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will display only 3.(the next sentence, ie., after fullstop/period) ____________________________________ if a>b continue end-if display 1 display 2. display 3. If a>b, it Will display 1 2 3 (the next statement) ____________________________________ if a>b continue display 1 end-if display 2 display 3. display 4. If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?

8 Answers   UST,


What should be the sorting order for SEARCH ALL?

5 Answers  


How do you reference the following file formats from cobol programs?

0 Answers  


Categories