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

Hi,

I have a requirement

File A : I have 6 records out of which 4 are same.

File B: I have 8 records out of 6 records are same.

The 4 records in FILEA and 6 records in FILE B are same. If
we substract we will get two records, I need these two
records in output file


This is because to remove the duplicates from the database.

Through easytrieve we can compare but for that there should
not duplicates, but in my file I have duplicates.

Thanks in advance!!

Answer Posted / sreejith

read file-1
1-a
2-b
3-c
4-d
5-e
6-f
also move record in to table1 that is decalred in ws with
legth 14 until read all the record from file-1
then
read file-2
move each record into table1 and variables g,h....up to for
8 records
now the table contain 16 item
then use legth variable l
then compare each variable from table for each matching
incriment the variabe length. after searching all item from
table
compare the legth with 1
if it is greater than one eliminate
other wise write it to the output file-3
ok

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by jcl?

1012


what operation is performed by job statement?

1084


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

1204


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

2404


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

1338


What are the 2 types of parameters in dd statement?

1122


How to alter the parameters for the existing gdg?

1163


What is catelog procedure and how many catelog procedure to use in one job?

8592


Explain how can a stopped job be started again?

1103


When space is allocated for an output dataset, what units can be used?

1228


What is the use of symbol // in jcl?

1432


Explain in DD statement what is the use of DCB parameter?

1102


what is the use of IEBGENER utility?

1131


In job processing, what happens in conversion stage?

1165


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

1122