Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 208
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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us