| Date: | Tue, 23 Nov 2004 08:03:20 -0500 |
| Reply-To: | Art@DrKendall.org |
| Sender: | "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU> |
| From: | Art Kendall <Arthur.Kendall@verizon.net> |
| Organization: | Social Research Consultants |
| Subject: | Re: Question about combination |
|
| In-Reply-To: | <20041123101625.4004743468@mailhub3.slovanet.net> |
| Content-Type: | text/plain; charset=ISO-8859-1; format=flowed |
You might try something like this. How large to make the output number
would depend how many values each of the input variables have.
numeric drfac (n12).
compute drfac = 100000*drcode + faccode.
Be sure to check whether the same prof teaches at different school
facilities or practitioners practice at different facilities. You might
want to think about this.
Art
Art@DrKendall.org
Social Research Consultants
University Park, MD USA
(301) 864-5570
Rodrigo Briceņo wrote:
>Dear listers. I have two numeric variables, one called drcode and the other
>faccode (facility code). I would like to make a new variable that is the
>combination of two. For example:
>
>drcode faccode new
>
>1 11 111
>
>2 12 112
>
>
>
>It is there a way to do this without needing to transform the variables to
>strings?
>
>
>
>Thanks
>
>____________________________
>
>Rodrigo Briceņo
>
>Consultant
>
>Sanigest International
>
>Telf. (506) 291-1200
>
>Fax (506) 232-0830
>
>Cell (506) 357-4535
>
>www.sanigest.com
>
>_____________________________
>
>
>
>
>
>
|