So. I use the V19 command
RECODE Region TO V23 (2 thru HI = 1). Where Region and the variables up to V23 are contiguous in my active data set. I get an Error: "The form VARX TO VARY has been used incorrectly." The online manual says I can use the form VAR TO VAR. What am I doing wrong? Grrr... David David W. Thompson, PhD, ABPP Diplomate in Forensic Psychology American Board of Professional Psychology Deputy Director Walworth Co. Dept. of Health and Human Services 262-741-3232 (voice) 262-741-3217 (fax) NOTICE OF CONFIDENTIALITY: This e-mail and any files transmitted with it may contain information that is privileged, confidential, and exempt from disclosure under applicable laws. This communication is intended for the sole use of the individual or entity to which it is addressed. Dissemination, forwarding, printing, or copying of this e-mail and any files transmitted with it without the consent of the sender is strictly prohibited. If you have received this e-mail in error, please do not distribute it. Please notify the sender by e-mail at the address shown and delete the original message. Thank you. |
In addition to being contiguous, the first
variable specified must come before the second in file order.
* this works. data list list /region fred v23. begin data 1 2 3 4 5 6 7 8 9 end data. recode region to v23 (2 thru hi=1). list. *this does not and give the error you get. data list list /v23 region fred. begin data 1 2 3 4 5 6 7 8 9 end data. recode region to v23 (2 thru hi=1). list. Rick Oliver Senior Information Developer IBM Business Analytics (SPSS) E-mail: [hidden email] From: David Thompson <[hidden email]> To: [hidden email], Date: 12/28/2012 03:56 PM Subject: Really Basic Question on Command Format Sent by: "SPSSX(r) Discussion" <[hidden email]> So. I use the V19 command RECODE Region TO V23 (2 thru HI = 1). Where Region and the variables up to V23 are contiguous in my active data set. I get an Error: "The form VARX TO VARY has been used incorrectly." The online manual says I can use the form VAR TO VAR. What am I doing wrong? Grrr... David David W. Thompson, PhD, ABPP Diplomate in Forensic Psychology American Board of Professional Psychology Deputy Director Walworth Co. Dept. of Health and Human Services 262-741-3232 (voice) 262-741-3217 (fax) NOTICE OF CONFIDENTIALITY: This e-mail and any files transmitted with it may contain information that is privileged, confidential, and exempt from disclosure under applicable laws. This communication is intended for the sole use of the individual or entity to which it is addressed. Dissemination, forwarding, printing, or copying of this e-mail and any files transmitted with it without the consent of the sender is strictly prohibited. If you have received this e-mail in error, please do not distribute it. Please notify the sender by e-mail at the address shown and delete the original message. Thank you. |
Administrator
|
True however unlikely.
My suspicion? There are one or more string variables between region and v23. ---
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?" |
I will be out of the office January 1, 2013 through January 4, 2013. I will be back in the office Monday, January 7, 2013.
If you need assistance, please send a message to [hidden email], or you may call (850) 412-4076 for immediate assistance. ===================== 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 |
In reply to this post by David Marso
I tried that. You get a different error
message about variables not all being the same type.
Rick Oliver Senior Information Developer IBM Business Analytics (SPSS) E-mail: [hidden email] From: David Marso <[hidden email]> To: [hidden email], Date: 12/28/2012 05:05 PM Subject: Re: Really Basic Question on Command Format Sent by: "SPSSX(r) Discussion" <[hidden email]> True however unlikely. My suspicion? There are one or more string variables between region and v23. --- Rick Oliver wrote > In addition to being contiguous, the first variable specified must come > before the second in file order. > > * this works. > data list list /region fred v23. > begin data > 1 2 3 > 4 5 6 > 7 8 9 > end data. > recode region to v23 (2 thru hi=1). > list. > *this does not and give the error you get. > data list list /v23 region fred. > begin data > 1 2 3 > 4 5 6 > 7 8 9 > end data. > recode region to v23 (2 thru hi=1). > list. > > Rick Oliver > Senior Information Developer > IBM Business Analytics (SPSS) > E-mail: > oliverr@.ibm > > > > From: David Thompson < > dthompson@.wi > > > To: > SPSSX-L@.uga > , > Date: 12/28/2012 03:56 PM > Subject: Really Basic Question on Command Format > Sent by: "SPSSX(r) Discussion" < > SPSSX-L@.uga > > > > > > So. I use the V19 command > > RECODE Region TO V23 (2 thru HI = 1). > > Where Region and the variables up to V23 are contiguous in my active data > set. > > I get an Error: "The form VARX TO VARY has been used incorrectly." > > The online manual says I can use the form VAR TO VAR. > > What am I doing wrong? > > Grrr... > > David > > David W. Thompson, PhD, ABPP > Diplomate in Forensic Psychology > American Board of Professional Psychology > > Deputy Director > Walworth Co. Dept. of Health and Human Services > 262-741-3232 (voice) 262-741-3217 (fax) > > NOTICE OF CONFIDENTIALITY: This e-mail and any files transmitted with it > may contain information that is privileged, confidential, and exempt from > disclosure under applicable laws. This communication is intended for the > sole use of the individual or entity to which it is addressed. > Dissemination, forwarding, printing, or copying of this e-mail and any > files transmitted with it without the consent of the sender is strictly > prohibited. If you have received this e-mail in error, please do not > distribute it. Please notify the sender by e-mail at the address shown and > delete the original message. Thank you. ----- Please reply to the list and not to my personal email. Those desiring my consulting or training services please feel free to email me. -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Really-Basic-Question-on-Command-Format-tp5717155p5717157.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== 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 |
Free forum by Nabble | Edit this page |