LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 16 Apr 2002 12:53:58 -0700
Reply-To:   "Wagner, Eric J. (V15)" <Eric.Wagner@MED.VA.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Wagner, Eric J. (V15)" <Eric.Wagner@MED.VA.GOV>
Subject:   Proc merge data set order
Content-Type:   text/plain; charset="iso-8859-1"

Greetings,

When performing a PROC MERGE, where one dataset is much larger than the other, is it faster to list the large dataset first or second? I am trying to minimize CPU cycles used and execution time. For example:

DATA combined; MERGE IN1.SUMMARY (IN=A keep=fundgrp scrssn ) IN6.SSN (IN=B); By ssn; RUN;

or

DATA combined; MERGE IN6.SCRSSN (IN=B) IN1.SUMMARY (IN=A keep=fundgrp scrssn ); By ssn; RUN;

where IN1.SUMMARY is on the order of 1GB in size and IN6.SSN is about 200k.

Thank you, Eric Wagner


Back to: Top of message | Previous page | Main SAS-L page