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 (October 1997, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 9 Oct 1997 14:25:17 -0700
Reply-To:   Bill Dvorak <bdvorak@MAILEXCITE.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Bill Dvorak <bdvorak@MAILEXCITE.COM>
Organization:   MailExcite (http://www.mailexcite.com)
Subject:   Re: KEY= Option of the SET Statement
Comments:   To: "jeff.cummings@nationsbank.com" <jeff.cummings@NATIONSBANK.COM>
Content-Type:   text/plain; charset=us-ascii

---

>Has anyone successfully used the KEY option in the SET statement of a data >step? When I use the sample code provided in Technical Report P-222 > > data combine; > set invtory(keep=partno instock price); > set partcode(keep=partno desc) key=partno; > run; > >I get the following error: > > ERROR: No key variables have been defined for file PARTCODE. > >Any suggestions or tips? > >Thanks, >Jeff Cummings >NationsBank >

Have you created an index for the file partcode? I think you need to create an index with PROC DATASETS to then use a variable as a key.

Bill

Free web-based email, Forever, From anywhere! http://www.mailexcite.com


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