IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Compare two PS using Key Fields


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lokesh_try8

New User


Joined: 30 Dec 2005
Posts: 14
Location: Chennai

PostPosted: Thu Jan 24, 2008 2:55 pm
Reply with quote

Hi,
Our Requirement is to compare two PS files, which is sorted based on Key Field (Col 1 to 10). We need to compare these two files based on the key field. Is there any utility to compare using Key Fields? If so Kindly provide a sample JCL and reference documentation.

Thanks In Advance,
Lokesh
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jan 24, 2008 4:17 pm
Reply with quote

lokesh_try8 wrote:
We need to compare these two files based on the key field. Is there any utility to compare using Key Fields?

Yeah SORT can do this.. as suggested. But what exactly do you need in your output after comparison?
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Thu Jan 24, 2008 11:51 pm
Reply with quote

The SyncSort for z/OS JOIN feature can be used. But as Anuj pointed out, you did not explain exactly what you want in your output... please provide additional details. For example, do you want matched records, unmatched records, records reformatted with fields from both input files, etc.?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Jan 25, 2008 12:41 am
Reply with quote

Hello Lokesh,

The way to get the most useful replies is to post representative sample input data for both files as well as the output you need from this input.

Also, please post the lrecl and recfm of the files.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts Compare latest 2 rows of a table usin... DB2 1
No new posts How to compare two rows of same table DB2 11
This topic is locked: you cannot edit posts or make replies. Compare files with duplicates in one ... DFSORT/ICETOOL 11
Search our Forums:

Back to Top