Date: Thu, 4 Sep 2003 17:20:30 -0400
Reply-To: Bruce Johnson <bjohnson@SOLUCIENT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Bruce Johnson <bjohnson@SOLUCIENT.COM>
Subject: Re: Multiple lengths were specified for the BY variable
/***Setup to the problem***/
Length key $16;
Length key $3;
/***End of setup***/
/***This is the solution to your problem***/
length key $16;
/***End of solution***/
/***Verification of solution***/
merge a b;
/***End of verification***/
Bruce A. Johnson
From: William Kossack [mailto:kossackw@NJC.ORG]
Sent: Thursday, September 04, 2003 4:11 PM
Subject: Multiple lengths were specified for the BY variable
I'm trying to merge two datasets.
I have a string variable. In both datasets they are defined as $16. However
in one the length is the length of the string and the other is 16.
I've tried a few things such as compress and trim but I can't get the
strings the same length so a merge using them as the by variable will work
This message is a private communication. It may contain information that is
confidential and legally protected from disclosure. If you are not an
intended recipient, please do not read, copy or use this message or any
attachments, and do not disclose them to others.
Please notify the sender of the delivery error by replying to this message,
and then delete it and any attachments from your system. Thank you.