View previous topic :: View next topic
|
Author |
Message |
prasanth_urs
New User
Joined: 04 Dec 2006 Posts: 44 Location: Pune,India
|
|
|
|
Hi all,
Please help me in this issue.
Is there any utility for comparing two different datasets(PS).
If A and B are two files , then i need to compare A with B and write the common records as well as the uncommon reocrds in C and D files.
Please provide me the syntax for this.
Thanks again. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
Back to top |
|
|
vkphani
New User
Joined: 29 Oct 2003 Posts: 29
|
|
|
|
Try this.
Code: |
//STEP1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD *
111111111
222222222
333333333
444444444
555555555
666666666
777777777
888888888
999999999
// DD *
555555555
666666666
777777777
888888888
999999999
//OUT DD SYSOUT=*
//SORTXSUM DD SYSOUT=*
//TOOLIN DD *
SELECT FROM(IN) TO(OUT) ON(1,9,CH) NODUPS DISCARD(SORTXSUM)
/*
|
OUT will have below the records which are non matching.
Code: |
111111111
222222222
333333333
444444444 |
SORTXSUM will have below the records which are matching.
Code: |
555555555
555555555
666666666
666666666
777777777
777777777
888888888
888888888
999999999
999999999 |
|
|
Back to top |
|
|
prasanth_urs
New User
Joined: 04 Dec 2006 Posts: 44 Location: Pune,India
|
|
|
|
ICETOOL is not working out for me...
Thanks, |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Can you post your ICETOOL con trol statements and output. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
prasanth_urs wrote: |
ICETOOL is not working out for me... |
You might try SYNCTOOL, SORTXSUM is not a DFSORT parm but a Syncsort one. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
The response posted by vkphani says that it uses ICETOOL, but I have learnt that PGM=ICETOOL can also invoke SYNCSORT / SYNCTOOL as well, obviously depending on the sort product installed.
From my view, SORTXSUM is just a DD name that has been used.
I guess if we do get around to seeing the output from the OP, we can see which tool is being used and offer help accordingly. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Good point expat.... |
|
Back to top |
|
|
|