Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Fri Jan 10, 2003 1:17 am Post subject:
Naveeen,
The following DFSORT/ICETOOL JCL will give you the desired results.If you have syncsort at your shop then change the pgm name to synctool.We concatenate both the files together and using select operator with NODUPS parm we will get the desired results.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Jan 10, 2003 12:12 pm Post subject:
Naveen,
Some clarification of terminology for your future use to avoid confusion:
--
ICETOOL is part of DFSORT. ICEMAN and SORT can be used as the entry point (PGM=ICEMAN) for DFSORT or Syncsort, so saying ICEMAN works does not really say anything about which sort product you have. In your case, since you have Syncsort, ICEMAN is used as the entry for Syncsort.
--
Note that DFSORT's ICETOOL allows CH ON fields up to 1500 bytes so you can use ON(1,133,CH). SYNCTOOL only allows CH ON fields up to 80 bytes. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Frank , I am now much more confused with the terminology after reading your post . Do you mean to say DFSORT and SYNCSORT are entirely different products.
Can you please explain me , what exactly are following things and relation between them:
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Sat Jan 11, 2003 10:21 am Post subject:
Naveen,
Yes, DFSORT and Syncsort are entirely different products.
1. Syncsort is the sort product from Syncsort, Inc.
2. DFSORT is the sort product from IBM.
3. ICETOOL is a fully documented multipurpose utility that is part of and shipped with DFSORT. PGM=ICETOOL will execute DFSORT's ICETOOL.
4. ICEMAN is an entry point for DFSORT and Syncsort. PGM=ICEMAN will execute DFSORT or Syncsort, depending on how they are installed at a particular shop.
Actually, "ICE" is the three character prefix assigned to DFSORT by IBM, so all of the DFSORT modules and messages start with "ICE". But Syncsort also ships ICEMAN as an alias for their product. Syncsort's messages start with "WER".
5. SORT is an entry point for DFSORT and Syncsort. PGM=SORT will execute DFSORT or Syncsort, depending on how they are installed at a particular shop.
6. ICEGENER is a "replacement" for IEBGENER that is part of and shipped with DFSORT. PGM=ICEGENER will execute DFSORT's ICEGENER. ICEGENER can also be installed as an automatic replacement for IEBGENER so that PGM=IEBGENER will execute ICEGENER.
I hope this helps clarify things.
Note that you can find a great deal of information about DFSORT at the DFSORT website:
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Jan 02, 2007 9:23 am Post subject:
Rajen,
Your solution with sortxsum will NOT work as the poster wanted all the records which are not matched in the main set. XSUM feature is used to get the Duplicate records into a seperate dataset.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Mon Jun 11, 2007 10:30 am Post subject:
vak255,
You are using a PARM EQUAL on SELECT statment but you need to mention a value with EQUAL
Ex: EQUAL(2) this will select the records where ON value occurs 2 times. But then your output will have 4 records if you use that. You just need 1 record. so try this . Your desired output will be in the SORTXSUM DD.
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Mon Jun 11, 2007 10:32 am Post subject:
vak255,
Quote:
I browsed the manual and tried with equal but getting
If you go through the manual again, you would find that the EQUAL operator requires a argument to be passed to it.
The actual syntax is EQUAL(v)
Code:
EQUAL(v) Limits the records selected to those with ON values that occur v times (value count = v). You can use this operand to keep just those records with field values that occur v times. v must be specified as n or +n where n can be 0 to 99.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum