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

Need help to compare two datasets by using Key field


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

New User


Joined: 24 Feb 2006
Posts: 2

PostPosted: Fri Feb 24, 2006 3:44 pm
Reply with quote

Hi Friends,

I want to compare two Datasets by using key field and need to check whether any matching fields are there or not

If you find a matching row then you need to write second dataset matched record into Output file

You have to do only through Jcl.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Feb 24, 2006 4:57 pm
Reply with quote

Check out this SMART DFSORT Trick...

Regards,

Priyesh.
Back to top
View user's profile Send private message
kvsk_2020

New User


Joined: 24 Feb 2006
Posts: 2

PostPosted: Fri Feb 24, 2006 5:04 pm
Reply with quote

Hi Priyesh,

Thanks for reply to my query.......

That DFSORT Trick was working....

Is there any chance to get the requirement by using IDCAMS

or any general Utilities other than ICETOOL
Back to top
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Fri Apr 21, 2006 4:28 pm
Reply with quote

but how to do this when LRECL for both the datasets are diffrent??
The key remains the same though!!!
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: Fri Apr 21, 2006 9:21 pm
Reply with quote

When the LRECLs are different, you just pad out the shorter file with blanks so it's the same length as the longer file. If you want more specific help, you need to give more details of what exactly you're trying to do with examples and information about the LRECLs.
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 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 Compare only first records of the fil... SYNCSORT 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top