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
 

 

SYNCSORT to compare 2 input files with sort fields

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vikrant85

New User


Joined: 05 Dec 2008
Posts: 8
Location: pune

PostPosted: Fri Dec 05, 2008 11:22 am    Post subject: SYNCSORT to compare 2 input files with sort fields
Reply with quote

I need to compare 2 Files with the sort/compare fields at differnt positions. I need to get an output file having non-duplicate records and one output file containing dupliocate records.

Field Positions for Input file1 (4-8)
Field Positions for Input file2 (10-15)
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2181
Location: @my desk

PostPosted: Fri Dec 05, 2008 11:29 am    Post subject:
Reply with quote

Please post some sample input and output records using "Code" tag with file-positions of key fields in both the files, input/output file attributes etc.
Back to top
View user's profile Send private message
vikrant85

New User


Joined: 05 Dec 2008
Posts: 8
Location: pune

PostPosted: Fri Dec 05, 2008 11:34 am    Post subject: Reply to: Compare 2 input files with sort fields at differnt
Reply with quote

I can use SYNCTOOL, ISRSUPC
File1-12110000
22410001
10002

file2 -12110002
12210003

The Sort keys are shown in bold.I want to get first 2 records of file 1 and second record of file2 in 1 output file and the duplicate record in second output file
Back to top
View user's profile Send private message
vikrant85

New User


Joined: 05 Dec 2008
Posts: 8
Location: pune

PostPosted: Fri Dec 05, 2008 11:39 am    Post subject: Reply to: Compare 2 input files with sort fields at differnt
Reply with quote

Key fiels are file 1(4-8)
File2(10-15)
Back to top
View user's profile Send private message
vikrant85

New User


Joined: 05 Dec 2008
Posts: 8
Location: pune

PostPosted: Fri Dec 05, 2008 11:40 am    Post subject: Re: Reply to: Compare 2 input files with sort fields at diff
Reply with quote

vikrant85 wrote:
Key fiels are file 1(4-8)
File2(10-14)
Back to top
View user's profile Send private message
vikrant85

New User


Joined: 05 Dec 2008
Posts: 8
Location: pune

PostPosted: Fri Dec 05, 2008 11:54 am    Post subject: Reply to: Compare 2 input files with sort fields at differnt
Reply with quote

file1-
aaa10000
bbb10001
ccc10002
File2-
ccc 10002
ddd 10003

Output file1
aaa10000
bbb10001
ddd10003

output File 2
ccc10002

Key Fieds file1 (4-8)
Key Fields File2 (10-14)
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 Sort Card to Remove Duplicate records... raj4neo SYNCSORT 2 Wed Jan 25, 2017 4:44 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 6 Sat Jan 21, 2017 4:02 am
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm


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