|
Would someone be so kind and tell me how i can do the following:
COMPUTE newvar=**last two digits of a 12-digit numerical oldvar**. Any pointers would be greatly appreciated. thanks a lot. bozena zdaniuk ===================== 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 |
|
Funny you should ask, I was just doing that...
COMPUTE newvar=MOD(oldvar,100). Tim Daciuk Director, Worldwide Demo Resources SPSS Inc. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Zdaniuk, Bozena Sent: Wednesday, February 04, 2009 1:03 PM To: [hidden email] Subject: last two digits Would someone be so kind and tell me how i can do the following: COMPUTE newvar=**last two digits of a 12-digit numerical oldvar**. Any pointers would be greatly appreciated. thanks a lot. bozena zdaniuk ===================== 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 |
|
thanks a lot, i forgot about that MOD function!
bozena ________________________________________ From: Daciuk, Tim [[hidden email]] Sent: Wednesday, February 04, 2009 1:11 PM To: Zdaniuk, Bozena; [hidden email] Subject: RE: last two digits Funny you should ask, I was just doing that... COMPUTE newvar=MOD(oldvar,100). Tim Daciuk Director, Worldwide Demo Resources SPSS Inc. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Zdaniuk, Bozena Sent: Wednesday, February 04, 2009 1:03 PM To: [hidden email] Subject: last two digits Would someone be so kind and tell me how i can do the following: COMPUTE newvar=**last two digits of a 12-digit numerical oldvar**. Any pointers would be greatly appreciated. thanks a lot. bozena zdaniuk ===================== 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 |
| Free forum by Nabble | Edit this page |
