I mean that I tried to use a SORT with a JOINKEYS for the two files, but eather it didn't function because on our sxsten there are not installed all PTF nor i foud an explanation on how to use it
Wish you a good one!!!! _________________ Maxisnowhere
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Thu May 31, 2007 10:51 am Post subject:
Maxisnowhere,
JOIN feature is introduced in Syncsort v 1.2. Check what version of syncsort you are using. If you are using Syncsort v 1.1 - then you can probably try with SPLICE, but please note that SPLICE is an undocumented feature in Syncsort.
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Thu May 31, 2007 11:13 am Post subject:
Just code a simple SORT job, execute it and look at your Sysout message - first line. It will show you the version
Code:
********************************* TOP OF DATA **********************************
SYNCSORT FOR Z/OS 1.1DR TPF3 U.S. PATENTS: 4210961, 5117495 (C) 2002 SYNC
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Thu May 31, 2007 11:19 am Post subject:
JOIN function is a feature of Syncsort. You need to use SPLICE for DFSORT. There are hundreds of posts in this board to match 2 files using DFSORT SPLICE and the manual is also available for free - online.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Thu May 31, 2007 11:20 am Post subject:
Quote:
I thought I could work with SPLICE
Max,
Yes, you can do it with SPLICE.
Here's a DFSORT/ICETOOL job that will do what you asked for. I assumed that your input files have RECFM=FB and LRECL=10, but the job can be changed appropriately for other attributes. I also assumed that you wanted the output sorted by the first field in input file1.
_________________ 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
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Jun 01, 2007 12:35 pm Post subject:
Actually, that would give:
EEEE
in OUT2 instead of:
EEEE 444
Here's a DFSORT/ICETOOL job that will handle the changed requirement and will also throw away a record in file2 without a match in file1 (e.g. 5555 SSS).
_________________ 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
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