From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98114743717032.tru64-unix-managers.marc@archive.invalid> From: "Wermerskirchen, Gary" Date: Fri, 02 Feb 2001 20:56:42 +0000 To: tru64-unix-managers Subject: SUMMARY: FW: Trying to 'join' two files X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98114743717032 My thanks to John Venier who came up with the answer, it appears that the files have to be sorted on the field you're going to 'join' on. -----Original Message----- From: John Venier [mailto:venier@odin.mdacc.tmc.edu] Sent: Friday, February 02, 2001 1:34 PM To: Gary.Wermerskirchen@trizetto.com Subject: Re: Trying to 'join' two files Hi Gary, Wermerskirchen, Gary sent the following indented text: > > O.K. wizards, gurus, etc., I'm stuck and I can't see what I'm missing. I'm > attempting to 'join' two files, with a common field and it only joins up the > first two lines. I deleted the second line of each file and then it joined > on the 1st, 3rd and last lines. > > I then went a step farther and copied file #1 to file #2, so they're > identical, that too only displays the first two lines. What am I missing? Is > a special character in this file that is causing it to fail? I've even > looked at hex dumps of both files to verify there isn't a nonprintable > character in the files. > > Thanks in advance, I'll summarize once I learn what I've missed, Don't both files have to be sorted on the join field, which in this case would be the first field? That might explain it. It certainly is consistent with what you report. John -- John Jeffrey Venier, M.Stat. Programmer Analyst III Section of Computer Science Department of Biomathematics The University of Texas M. D. Anderson Cancer Center, Houston, Texas venier@mdanderson.org +1 713 792 2622