Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Read filea And file b write the same records in both files?
Records in a but not in b record in b but not in a

Answer Posted / ravi


JOB INPUT (INFILE1 KEY (INFIL1-ID) +
INFILE2 KEY (INFIL2-ID))
IF MATCHED
PUT OUTFILE1
ELSE
IF INFILE2
OUT1-REC = INFIL1-REC
PUT OUTFILE2
ELSE
OUT1-REC = INFIL2-REC
PUT OUTFILE2

END-IF
END-IF
.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the fixed unblock file formats from cobol programs

1174


What is difference between static and dynamic call in cobol?

1301


What is comp-1 and comp-2?

1185


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1102


What is inspect in cobol ?

1241


how to access the file from prodution from changeman tool and to submit a file to production

7441


Discuss about changing dataset name in proc.

1173


i need a small 3d program using inline and outline.

2166


How do define dynamic array in cobol.

1082


In COBOL, what is the different between index and subscript?

1185


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

2060


How arrays can be defined in COBOL?

1136


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2404


How do u write test cases?

2012


In COBOL programming, what is PERFORM? What is VARYING?

1087