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

Compare datasets using SORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Tue Jul 06, 2010 5:06 pm
Reply with quote

Hi All,

I have two datasets namely Dataset-1, Dataset-2. The details are mentioned below:

Dataset-1
Code:

11111111111111111111111111111111
22222222222222222222222222222222
33333333333333333333333333333333
55555555555555555555555555555555
66666666666666666666666666666666


Dataset-2
Code:

11111111111111111111111111111111
33333333333333333333333333333333
44444444444444444444444444444444


In output, I need two datasets:

Dataset-3 : should contain all the matching records in Dataset-1 and Dataset-2.
Dataset-4 : should contain all the non-matching records in Dataset-1 only.

Dataset-3
Code:

11111111111111111111111111111111
33333333333333333333333333333333


Dataset-4
Code:

22222222222222222222222222222222
55555555555555555555555555555555
66666666666666666666666666666666


RECTYPE=F, and LRECL=4595.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue Jul 06, 2010 6:27 pm
Reply with quote

Look at DFSORT Tricks Look for: Create files with matching and non-matching records....
Back to top
View user's profile Send private message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Tue Jul 13, 2010 12:10 pm
Reply with quote

You can use the SORT JOIN for this...
Back to top
View user's profile Send private message
smijoss

Active User


Joined: 30 Aug 2007
Posts: 114
Location: pune

PostPosted: Tue Jul 13, 2010 12:15 pm
Reply with quote

true .. a sample JCL is given in the document for join keys
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Jul 13, 2010 10:43 pm
Reply with quote

Viv,

Note that DFSORT cannot do matching on 4595 bytes. The limit is closer to 4088 bytes.

Are you trying to do the match on all 4595 bytes? Or on a specific number of bytes (give the starting posiion and length)?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jul 14, 2010 5:27 pm
Reply with quote

Hi Frank,
Frank Yaeger wrote:
The limit is closer to 4088 bytes.
Why do you say "closer to" - is there no definite number?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Jul 14, 2010 11:30 pm
Reply with quote

4088 is the maximum, but it can be less depending on which formats are used, whether EQUALS is used, etc.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
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
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top