Give some advantages of REDEFINES clause?

Answers were Sorted based on User's Feedback



Give some advantages of REDEFINES clause?..

Answer / mahathiaz

1. You can REDEFINE a Variable from one PICTURE class to
another PICTURE class by using the same memory
location.
2. By REDEFINES we can INITIALISE the variable in
WORKING-STORAGE Section itself.
3. We can REDEFINE a Single Variable into so many sub
variables. (This facility is very useful in solving Y2000
Problem.)

Is This Answer Correct ?    23 Yes 1 No

Give some advantages of REDEFINES clause?..

Answer / pappu

test

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More COBOL Interview Questions

If a sub program is called from mainprogram.I have opened cursor in main program and Fetch the result in subprogram ,Is it possible ?If yes please tell me the reason.

1 Answers  


How many bytes will be allocated for the following record description entries? 01 REC-A. 05 A PIC S9(4). 05 B PIC XXXBXXX. 05 C PIC ____9.99. 05 D PIC S9(5) COMP-3. 05 E PIC 9(3) COMP.

16 Answers   IBM, TCS,


How do you differentiate between cobol and cobol-ii?

0 Answers  


I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

4 Answers   IBM,


I have a COBOL main program which is calling sub program, the number of calling parameters used in main program are 4 whereas in sub program it's 5. Sub program is passing 5 parameters back to main program Will there be any compilation error? Or main program parameters displays junk values?

1 Answers  






What rules are followed by the search verb.

0 Answers  


i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?

7 Answers   CTS,


I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?

1 Answers   CTS,


ZEROES and SPACES are _______ constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete

4 Answers   TCS,


how can count the number of character in feild ?? suppose for instance i have a feild with value ' rajesh sarkar' then how can v count the number of characters whitout spaces...........

4 Answers   Wipro,


How to Pass table from a cobol program to another cobol program and how to use that table in called program

8 Answers   Patni, SunGard,


Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.

12 Answers  


Categories