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 (December 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 18 Dec 2006 07:25:03 -0500
Reply-To:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject:   Re: Merging two files

your (in = ...) is wrong. You need a variable there to keep the information "true" or "false", in SAS 1 or 0, like:

(in = ae) and (in = treatement)

you can also use different names like

(in = in_one)

you simply have to change your IF - statement for that.

That has nothing to do with the dataset-name work.ae or ae.

Regards, Gerhard

On Mon, 18 Dec 2006 04:03:22 -0800, RAMS <ramsathish@GMAIL.COM> wrote:

>Hi all, > > > I have two data sets called AE and Treatment. In AE data set I >have the information about 43 subjects and in Treatment data set I have >24 subjects only. > >when i Try the Following code > >data work.adverse_event; >merge work.ae (in = work.ae) work.treatment (in = work.treatment); >by sno; >if ae and treatment; >run; > > >I am getting the error message of "Variable name is not valid". > >Anyone please help me to merge these two datasets. > >Thanks in advance. > > >Regards, > > >Ramsathish S


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