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
 

 

Need help to compare two datasets by using Key field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Need help to compare two datasets by using Key field
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: 1452
Location: Chicago, IL

PostPosted: Fri Feb 24, 2006 4:57 pm    Post subject: Re: Need help to compare two datasets by using Key field
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    Post subject: Re: Need help to compare two datasets by using Key field
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    Post subject: Re: Need help to compare two datasets by using Key field
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 Moderator


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

PostPosted: Fri Apr 21, 2006 9:21 pm    Post subject:
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    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 member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm


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