Why we need to use redefine clause when we can define the
variable seperately... what is actual need....

Answer Posted / ashok

yes when ever we face two type of records in the file in
that we use this redefines i will expline that best example
o1 salse-record
05 salse-re
o2 qua pic x(04).
o2 unit-pric pic x(08).
05 amount redefine salse-re pic x(12).

in this eaither we get qandity and price or amount
nobothar about it .

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1621


What are the different open modes available in cobol?

726


Have you used comp and comp-3 in your project? And how?

2014


what happens if parmparameter passes zero bytes to the program

1671


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

431






How do we get current date from system with century in COBOL?

814


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

1482


Describe the cobol database components?

686


) How do u handle errors in BMS macro

1514


how do you reference the variable block file formats from cobol programs

694


What are the various section in data division and briefly explain them.

708


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1123


what are decleratives in cobol?

1831


Explain what you understand by passing by value.

710


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1814