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 (May 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 19 May 2004 11:23:40 -0400
Reply-To:   Nathaniel_Wooding@DOM.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Nat Wooding <Nathaniel_Wooding@DOM.COM>
Subject:   Re: Adding a single value to each observation of a dataset
Content-type:   text/plain; charset=US-ASCII

Another solution:

data one; input count price; cards; 1 5.15 2 3.33 3 4.44 data two; newprice=6.66; run;

data three; if _n_=1 then set two; set one; output;

proc print data=three; run;

Nat Wooding


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