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

SYNCSORT to compare 2 input files with sort fields


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2481
Location: @my desk

PostPosted: Fri Dec 05, 2008 11:29 am
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
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
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
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
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 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 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top