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 (November 2009, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 10 Nov 2009 15:33:30 -0600
Reply-To:   Joe Matise <snoopy369@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Joe Matise <snoopy369@GMAIL.COM>
Subject:   Re: macro problem for reading, creating and merging several datasets
Comments:   To: Cornel Lencar <clencar@interchange.ubc.ca>
In-Reply-To:   <200911102128.nAAHFQ0i024106@malibu.cc.uga.edu>
Content-Type:   text/plain; charset=ISO-8859-1

Mark is suggesting that you *first* set the smaller files together, then use the macro on that file, which will work if everything is as you have explained it.

A join B union all A join C union all A join D

is identical to

A join (B union all C union all D)

as long as there aren't duplicate IDs or whatnot causing problems [which will cause problems in either case, probably]. So if your macro expects A join Z only, then just make a Z that is B union C union D.

-Joe

On Tue, Nov 10, 2009 at 3:28 PM, Cornel Lencar <clencar@interchange.ubc.ca>wrote:

> Hi Mark, > > The original file was broken in smaller, by year files, that I have to > work with and the original macro was written for exactly that situation. > Now I need to work with several smaller files, merge them individually > with one file and the resulting files put them together in a unique final > file. >


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