Problem with Concat

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

Problem with Concat

Weinberg, Jerry
Listers;
 I am trying to run the following syntax:
STRING CRS3(A20).

COMPUTE CRS3=CONCAT(RTRIM(Q2), RTRIM(Q3_1)).

However, I get the following error message:

>Error # 4311 in column 29. Text: )

>The string argument required for the function specified was not
supplied.

>This command not executed.

 

Any help in letting me know what I am doing wrong would be greatly
appreciated.

 
 
Jerry Weinberg, Ph.D
Director, Office of Institutional Research
_____________________________
St. Thomas University
16401 NW 37th Avenue
Miami Gardens, FL 33054
(305) 474-6886
[hidden email]
 

 

 

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Concat

Oliver, Richard
Any chance that some preceding command is missing a command terminator? Your syntax works fine for me:

data list free /q2 q3_1 (2a10).
begin data
abc def
end data.
STRING CRS3(A20).
COMPUTE CRS3=CONCAT(RTRIM(Q2), RTRIM(Q3_1)).
list.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Weinberg, Jerry
Sent: Tuesday, August 12, 2008 11:56 AM
To: [hidden email]
Subject: Problem with Concat

Listers;
 I am trying to run the following syntax:
STRING CRS3(A20).

COMPUTE CRS3=CONCAT(RTRIM(Q2), RTRIM(Q3_1)).

However, I get the following error message:

>Error # 4311 in column 29. Text: )

>The string argument required for the function specified was not
supplied.

>This command not executed.



Any help in letting me know what I am doing wrong would be greatly
appreciated.



Jerry Weinberg, Ph.D
Director, Office of Institutional Research
_____________________________
St. Thomas University
16401 NW 37th Avenue
Miami Gardens, FL 33054
(305) 474-6886
[hidden email]






=======
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD