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...

I have the requirement to compare the two files and pick up
the matching records.
File 1. file2

23 32
32 13
34 15
35 36
36 35
43

Get the matching records from this 2 files to out file. how
you will do this in cobol program?

Answer Posted / siri

IN COBOL
IF FILE1>FILE2
READ FILE2
IF FILE1<FILE2
READ FILE1
IF FILE1=FILE2
WRITE FILE3
READ FILE1
READ FILE2.......
IN JCL
//XSUM DD DSN=XSUM.MATCH
//SYSIN DD *
SORT FIELDS=COPY
SUM FIELDS=NONE,XSUM
/*

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of error is trapped by on size error option?

1230


What is the difference between next sentence and continue in cobol programing language?

1220


How do define dynamic array in cobol.

1125


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1237


What are the pertinent COBOL

2563


Write a program to enter and display the names of students in a class using the occurs clause.

1202


What is the difference between perform … with test after and perform … with test before?

1438


What is the problem of ordered sequential files access?

1159


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

1156


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1159


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

2072


What is length is cobol?

1097


What are the different types of condition in cobol and write their forms.

1110


What are the different data types in cobol?

1432


What is the difference between PIC 9.99 and PIC9v99?

1335