Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts compare 2 rows within the same file ram_vizag SYNCSORT 7 Wed Jun 14, 2017 12:34 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us