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: 2296
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 Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am

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