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

Unmatching records from two inputs to an outpu


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

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Tue Dec 27, 2005 1:21 pm
Reply with quote

Can i get the unmatching records from two inputs to an output file by splice or a normal sort.
Input1 :
111 abcd
111 cdef
222 acfg

Input2 :
111 mnop
333 acfg

My output should be like
111 abcd
111 cdef
i;e the output file shud contain only those record from the input file which has got a matching key(here first 4 chars) in the second file. Please let me know whether this can be done by a normal sort or if there is a way of using the splice function please let me know that also.

Thanks,
Nithin.
Back to top
View user's profile Send private message
pjnithin

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Tue Dec 27, 2005 1:41 pm
Reply with quote

Here I also need to get the unmatching records in another file. Like,
Input1 :
111 abcd
111 cdef
222 acfg

Input2 :
111 mnop
333 acfg

unmatch records output file:
222 acfg
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


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

PostPosted: Tue Dec 27, 2005 1:55 pm
Reply with quote

Refer to the link below...

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst02.html#t05

Regards,

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

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Tue Dec 27, 2005 2:15 pm
Reply with quote

Priyesh,
It worked, but what does KEEPNODUPS option makes. I was trying without that, like:

SPLICE FROM(T2) TO(OUT) ON(1,13,CH) WITHALL -
WITH(81,3) USING(CTL4)
But in this cases only the matching records were spliced and coming in the output. None of the unmatched records from either of files 1 or 2 was not coming in the output.
Anyways thanks for ur help.

Nithin.

priyesh.agrawal wrote:
Refer to the link below...

http://www-03.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst02.html#t05

Regards,

Priyesh.
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: Tue Dec 27, 2005 8:43 pm
Reply with quote

Quote:
what does KEEPNODUPS option makes


If you specify KEEPNODUPS, the unmatched records are kept. If you don't specify KEEPNODUPS, the unmatched records are deleted.

For complete details on the SPLICE operator of DFSORT's ICETOOL and all of its parameters, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/6.13?DT=20050222160456
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 2
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 Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top