| 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 |
|
| 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
|