concatenate numeric variables

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

concatenate numeric variables

DIANCOMA
Hello,

I want to concatenate numeric varibles, but when I write the sintanxis in spss, throws me the following dialog box:

"the argument specified function necessary for chain has not been provided"

My syntax is: CONCAT (var1, var2)

I want to do the following:

Var1=234
Var2=98

Varconcat=23498
Reply | Threaded
Open this post in threaded view
|

Re: concatenate numeric variables

David Marso
Administrator
It would be rash to presume your second variable always has 2 digits.  Hence I will only suggest that ou multiply the first by an appropriate power of 10 and then add the second.

DIANCOMA wrote
Hello,

I want to concatenate numeric varibles, but when I write the sintanxis in spss, throws me the following dialog box:

"the argument specified function necessary for chain has not been provided"

My syntax is: CONCAT (var1, var2)

I want to do the following:

Var1=234
Var2=98

Varconcat=23498
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: concatenate numeric variables

DIANCOMA
thank David,

I must say that my second variable contains only one digit. But I worry that I should use the syntax. because I understand that the "concat" command is only used for string variables, not for variables string

thank you.