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 files using syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: compare files using syncsort
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: 8593
Location: Back in jolly old England

PostPosted: Mon Oct 12, 2009 2:33 pm    Post subject:
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    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