Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Compare Two datasets and get the 1st unmatched record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
ArunkumarGanesan

New User


Joined: 09 Jan 2020
Posts: 6
Location: USA

PostPosted: Fri Mar 27, 2020 2:00 am    Post subject: Compare Two datasets and get the 1st unmatched record
Reply with quote

Hi,

I am having a requirement to compare two datasets and get the 1st unmatched after the matched record and last unmatched record from 1st file alone.

Input1: Recfm: FB LRECL:80
Key: 1,8,ZD
20200209
20200312
20200414
20200516

Input2: Recfm: FB LRECL:80
Key:4,8,ZD
MAY20200209INITIAL

Expected Output:
20200312 20200516

I tried using joinkeys. I am getting all unmatched records in the unmatched file.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2312
Location: Hampshire, UK

PostPosted: Fri Mar 27, 2020 2:50 am    Post subject: Reply to: Compare Two datasets and get the 1st unmatched record
Reply with quote

Line 5 of your control statements has a positional error.
Back to top
View user's profile Send private message
ArunkumarGanesan

New User


Joined: 09 Jan 2020
Posts: 6
Location: USA

PostPosted: Fri Mar 27, 2020 2:59 am    Post subject: Re: Reply to: Compare Two datasets and get the 1st unmatched record
Reply with quote

Nic Clouston wrote:
Line 5 of your control statements has a positional error.


Nic. I'm so sorry i didn't get your advice. Can you please explain me
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 308
Location: Inside the SPEW (Cincinnati OH USA)

PostPosted: Fri Mar 27, 2020 4:14 am    Post subject:
Reply with quote

Nic's humorous comment was alerting you to the fact that you failed to include your control statements in your original post.
Back to top
View user's profile Send private message
Joerg.Findeisen

Active User


Joined: 15 Aug 2015
Posts: 147
Location: Germany

PostPosted: Fri Mar 27, 2020 10:12 am    Post subject: Re: Reply to: Compare Two datasets and get the 1st unmatched record
Reply with quote

Nic Clouston wrote:
Line 5 of your control statements has a positional error.

It has been fixed now. Output is as requested:
Code:
20200312 20200516
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 Include Group record based on detail ... guptae DFSORT/ICETOOL 11 Thu Mar 12, 2020 1:54 pm
No new posts IDMS record copybook Susanta IDMS/ADSO 2 Mon Feb 24, 2020 8:55 pm
No new posts Compare input date as YYMMDD with the... Khurshid_Khan SYNCSORT 5 Fri Feb 21, 2020 10:28 pm
No new posts convert SUPERC compare report to side... jzhardy CLIST & REXX 5 Fri Feb 21, 2020 8:55 am
No new posts Need a Macro to compare datasets and ... Anupam Nayak All Other Mainframe Topics 2 Mon Feb 17, 2020 4:45 pm

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