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 compare 2 rows within the same file ram_vizag SYNCSORT 7 Wed Jun 14, 2017 12:34 am
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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