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
 
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: 2285
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm

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