seeking help deleting characters form a string variable - reply to John Lemon

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

seeking help deleting characters form a string variable - reply to John Lemon

thara vardhan-2

Hi John

Thank you so much for responding to my plea for help with the correct syntax.

When I tried to run it as suggested by you

STRING REGION (A20)
COMPUTE REGION = SUBSTR (polregx, 7, 20 ).

I get an error message as:
 
>Error # 4080 in column 16.  Text: =
>On the STRING command, the list of variables being defined was not followed by
>the formats for those variables.
>This command not executed.
exe.

Is this because polregx is a string variable?

looking forward to your reply.

many thanks

Thara Vardhan
Senior Statistician
Performance Improvement & Planning



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

The information contained in this email is intended for the named recipient(s) 
only. It may contain private, confidential, copyright or legally privileged 
information.  If you are not the intended recipient or you have received this 
email by mistake, please reply to the author and delete this email immediately. 
You must not copy, print, forward or distribute this email, nor place reliance 
on its contents. This email and any attachment have been virus scanned. However, 
you are requested to conduct a virus scan as well.  No liability is accepted 
for any loss or damage resulting from a computer virus, or resulting from a delay
or defect in transmission of this email or any attached file. This email does not 
constitute a representation by the NSW Police Force unless the author is legally 
entitled to do so.


Reply | Threaded
Open this post in threaded view
|

Re: seeking help deleting characters form a string variable - reply to John Lemon

Melissa Ives
put a period after STRING REGION (A20)


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Thara Vardhan
Sent: Friday, April 17, 2009 2:02 AM
To: [hidden email]
Subject: [SPSSX-L] seeking help deleting characters form a string variable - reply to John Lemon


Hi John

Thank you so much for responding to my plea for help with the correct syntax.

When I tried to run it as suggested by you

STRING REGION (A20)
COMPUTE REGION = SUBSTR (polregx, 7, 20 ).

I get an error message as:
 
>Error # 4080 in column 16.  Text: =
>On the STRING command, the list of variables being defined was not followed by
>the formats for those variables.
>This command not executed.
exe.

Is this because polregx is a string variable?

looking forward to your reply.

many thanks

Thara Vardhan
Senior Statistician
Performance Improvement & Planning



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

The information contained in this email is intended for the named recipient(s) 
only. It may contain private, confidential, copyright or legally privileged 
information.  If you are not the intended recipient or you have received this 
email by mistake, please reply to the author and delete this email immediately. 
You must not copy, print, forward or distribute this email, nor place reliance 
on its contents. This email and any attachment have been virus scanned. However, 
you are requested to conduct a virus scan as well.  No liability is accepted 
for any loss or damage resulting from a computer virus, or resulting from a delay
or defect in transmission of this email or any attached file. This email does not 
constitute a representation by the NSW Police Force unless the author is legally 
entitled to do so.




PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.
Reply | Threaded
Open this post in threaded view
|

תשובה: seeking help deleting characters form a string variable - reply to John Lemon

Nirit Avnimelech
In reply to this post by thara vardhan-2

Hi Thara,

 

I think the problem is that you forgot to put a period (.) at the end of the STRING command, so the following command is treated as additional new string variables you're defining…

 

Nirit

 


מאת: SPSSX(r) Discussion [mailto:[hidden email]] בשם Thara Vardhan
נשלח: Friday, April 17, 2009 10:02 AM
אל: [hidden email]
נושא: seeking help deleting characters form a string variable - reply to John Lemon

 


Hi John

Thank you so much for responding to my plea for help with the correct syntax.

When I tried to run it as suggested by you

STRING REGION (A20)
COMPUTE REGION = SUBSTR (polregx, 7, 20 ).

I get an error message as:
 
>Error # 4080 in column 16.  Text: =
>On the STRING command, the list of variables being defined was not followed by
>the formats for those variables.
>This command not executed.
exe.

Is this because polregx is a string variable?

looking forward to your reply.

many thanks

Thara Vardhan
Senior Statistician
Performance Improvement & Planning


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

The information contained in this email is intended for the named recipient(s) 
only. It may contain private, confidential, copyright or legally privileged 
information.  If you are not the intended recipient or you have received this 
email by mistake, please reply to the author and delete this email immediately. 
You must not copy, print, forward or distribute this email, nor place reliance 
on its contents. This email and any attachment have been virus scanned. However, 
you are requested to conduct a virus scan as well.  No liability is accepted 
for any loss or damage resulting from a computer virus, or resulting from a delay
or defect in transmission of this email or any attached file. This email does not 
constitute a representation by the NSW Police Force unless the author is legally 
entitled to do so.