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
 
Compare datasets using SORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Compare datasets using SORT
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: 2150
Location: At my coffee table

PostPosted: Tue Jul 06, 2010 6:27 pm    Post subject:
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    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Tue Jul 13, 2010 10:43 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Jul 14, 2010 5:27 pm    Post subject:
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 Moderator


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

PostPosted: Wed Jul 14, 2010 11:30 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 1 Fri Nov 17, 2017 9:49 am
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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