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 / vijay

It is simple, you no need to code ezt pgm for eliminating
the duplicate records. Try these 2 steps to eliminate the
duplicates.

Step-1: Use sort on file 1 and use sumfields=none on the
key field, then you can get only 2 records in the output
file.

Step-1: Follow the above procedure for the file 2.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can the attributes of one sms dataset be copied to another dataset?

1160


what is the compile process of cobol program expalin with code

2504


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

1177


What are the parameters that are used in creating a gdg?

1151


Explain how can values be passed from the job stream to an executable program?

1132


Explain the function of //jcllib statement?

1159


Name what parameter directs the output of the job log dataset?

1008


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

4837


what happens in execution stage in job processing?

1089


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

1029


Is automatic restart possible in jcl? If yes, how?

1065


What is one line to pass PARM from JCL to COBOL?

4904


Explain how can return codes be tested before execution of a job step?

1281


Name a few IBM utility programs, and explain its function.

4901


what is DSN in JCL and what are the parameters to declare the DSN?

1148