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
 
New JOINKEYS Head Scratcher

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

Active User


Joined: 05 Dec 2006
Posts: 158
Location: Seattle, WA

PostPosted: Wed Nov 21, 2018 1:19 am    Post subject: New JOINKEYS Head Scratcher
Reply with quote

OK, I RTFM, and looked at a few examples, but I'm not getting correct output. I want to see the keys from File 1 that are not on File 2. Here's what I have:

Code:
IN1       DD DSN=RWAR107.TEST.SORTPERS,DISP=SHR
IN2       DD DSN=RWAR107.TEST.SORTDEPD,DISP=SHR
*                                               
SORTOUT   DD DSN=SEB107.TEST.OUT12,             
//SYSIN  DD  *                         
 JOINKEYS F1=IN1,FIELDS=(1,9,A),SORTED 
 JOINKEYS F2=IN2,FIELDS=(2,9,A),SORTED 
 JOIN UNPAIRED,F1,F2                   
 REFORMAT FIELDS=(F1:1,9)               
 OPTION COPY                           
 OUTREC BUILD=(1,9)                     
 END                                   
//*                                     


What I'm getting is a list of all keys in F2.

What am I doing wrong?
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2448
Location: @my desk

PostPosted: Wed Nov 21, 2018 1:32 am    Post subject:
Reply with quote

Quote:
I want to see the keys from File 1 that are not on File 2

Code:
JOIN UNPAIRED,F1,ONLY
is what you need.

Code:
JOIN UNPAIRED,F1,F2
would give both matching and non-matching keys from both the inputs.
Back to top
View user's profile Send private message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 158
Location: Seattle, WA

PostPosted: Wed Nov 21, 2018 1:46 am    Post subject:
Reply with quote

Thanks Arun - that did the trick!
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 Joinkeys overlay and unmatched with O... ambalam DFSORT/ICETOOL 11 Thu Aug 23, 2018 11:57 am
No new posts Reformat clause in joinkeys sortcard ... Mounika Nemani DFSORT/ICETOOL 2 Thu May 31, 2018 5:35 pm
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am
No new posts Weirdo results with JOINKEYS Balaryan DFSORT/ICETOOL 4 Wed Oct 18, 2017 9:04 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am

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