Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Compare two files having different keys

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Minu Mary Raju

New User


Joined: 20 Nov 2007
Posts: 5
Location: Chennai

PostPosted: Fri Oct 10, 2008 11:52 am    Post subject: Compare two files having different keys
Reply with quote

Hi,

I want to compare 2 input files and produce an output file, when there is a match between the key of file1 and file2. I want to write all records from file 1 to the output file, whenever a match is found. Here the Key position as well as the format of keys are different. And both files can contain duplicate records also.

Someone please respond to this as am in a critical situation to finish off this task.

Thanks in Advance
Minu.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Oct 10, 2008 12:04 pm    Post subject:
Reply with quote

You have not provided nearly enough information for anyone to help you.

How are we supposed to know anything about the file layout without your giving us any information.

RECFM=
LRECL=
Key pos file 1 =
Key pos file 2 =
My sort product is ............
How are duplicates in both files to be handled ?

Also, there are numerous threads of the same topic in the JCL & DFSORT forums. Have you used the search button at the top of the page.

What have you tried for yourself and what are the errors you get.

Quote:
Someone please respond to this as am in a critical situation to finish off this task.

It is rather a bad move to rely on the answers of a forum given your parlerous state of having to complete this soon. Hence my request for the results of your own attempts.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Oct 10, 2008 12:41 pm    Post subject:
Reply with quote

Hello,

Quote:
Here the Key position as well as the format of keys are different
If one of your keys is employee number and the other key is employee name, you have a problem. . .

As Expat mentioned, you have provided no details for someone to us to help you.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us