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

compare files using syncsort


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

New User


Joined: 09 Jan 2007
Posts: 17
Location: india

PostPosted: Mon Oct 12, 2009 12:54 pm
Reply with quote

Hi all,

I need your help.

I have to compare two files using SYNCSORT as mentioned below…
Input files and output files have same attributes: recl=41 , PS, FB, no duplicates, sorted.

Key is first two fields. And fields are…

05 AAA PIC S9(11) COMP-3.
05 BBB PIC X(03).
05 CCC PIC S9(11) COMP-3.
05 DDD PIC S9(11) COMP-3.
05 EEE PIC S9(11) COMP-3.
05 FFF PIC X(8).
05 GGG PIC X(6).

Example -
INPUT:
File1:
AA11111
BB22222
CC33333

File2:
BB22222
CC66666
DD44444

OUTPUT:
File1: records from file1 where key found in file1 but not in file2
AA11111

File2: records from file2 where key found in file2 but not in file1
DD44444

File3: records from file1 where key found in both files but non-key fields doesn’t match.
CC33333

File4: records from file2 where key found in both files but non-key fields doesn’t match.
CC66666

we have SYNCSORT FOR Z/OS 1.3.2.0R

hope I have given all details.

Thank you.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Oct 12, 2009 2:33 pm
Reply with quote

Topic moved to correct forum - JCL - for SYNCSORT questions.
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 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top