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

Is there any utility for comparing two different datasets(PS


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

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Wed Apr 11, 2007 9:48 am
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Apr 11, 2007 9:55 am
Reply with quote

Hi Prashanth,

The "Create files with matching and non-matching records" Smart DFSORT Trick at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

shows how to do it.
Back to top
View user's profile Send private message
vkphani

New User


Joined: 29 Oct 2003
Posts: 29

PostPosted: Wed Apr 11, 2007 10:07 am
Reply with quote

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
View user's profile Send private message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Wed Apr 11, 2007 3:56 pm
Reply with quote

ICETOOL is not working out for me...


Thanks,
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Apr 11, 2007 3:58 pm
Reply with quote

Can you post your ICETOOL con trol statements and output.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Apr 11, 2007 4:48 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Apr 11, 2007 4:54 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Apr 11, 2007 5:10 pm
Reply with quote

Good point expat....
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 REASON 00D70014 in load utility DB2 6
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts Comparing Header and Trailer. DFSORT/ICETOOL 7
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
Search our Forums:

Back to Top