SPSSINC trans gives error message in SPSS 27 syntax worked in SPSS 24

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

SPSSINC trans gives error message in SPSS 27 syntax worked in SPSS 24

Art Kendall
this syntax worked with other variables in SPSS 24.

spssinc trans result = T.Store.Water01 to T.Store.Water12 type=25
    /formula "string.split(How.Store.Water, '|')".
now it gives this message in SPSS 27  (release 27.0.1.0).

Did a vanilla install of SPSS 27. Did I miss something?



-----
Art Kendall
Social Research Consultants
--
Sent from: http://spssx-discussion.1045642.n5.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
Art Kendall
Social Research Consultants
Reply | Threaded
Open this post in threaded view
|

Re: SPSSINC trans gives error message in SPSS 27 syntax worked in SPSS 24

Jon Peck
The variable names must be legal as Python names, because the procedure generates Python code based on those names.  You can't have "." in a name  in Python.

On Mon, Dec 7, 2020 at 9:37 AM Art Kendall <[hidden email]> wrote:
this syntax worked with other variables in SPSS 24.

spssinc trans result = T.Store.Water01 to T.Store.Water12 type=25
    /formula "string.split(How.Store.Water, '|')".
now it gives this message in SPSS 27  (release 27.0.1.0).

Did a vanilla install of SPSS 27. Did I miss something?



-----
Art Kendall
Social Research Consultants
--
Sent from: http://spssx-discussion.1045642.n5.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


--
Jon K Peck
[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: SPSSINC trans gives error message in SPSS 27 syntax worked in SPSS 24

Art Kendall
Thank you.

I'll change to CamelCoding.





-----
Art Kendall
Social Research Consultants
--
Sent from: http://spssx-discussion.1045642.n5.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
Art Kendall
Social Research Consultants
Reply | Threaded
Open this post in threaded view
|

Re: SPSSINC trans gives error message in SPSS 27 syntax worked in SPSS 24

Jon Peck
or use _

On Mon, Dec 7, 2020 at 11:01 AM Art Kendall <[hidden email]> wrote:
Thank you.

I'll change to CamelCoding.





-----
Art Kendall
Social Research Consultants
--
Sent from: http://spssx-discussion.1045642.n5.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


--
Jon K Peck
[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: SPSSINC trans gives error message in SPSS 27 syntax worked in SPSS 24

Art Kendall
Good to know that "_"  is okay when using Python.

I have the impression that Water_Source01 would be more human-readable.





-----
Art Kendall
Social Research Consultants
--
Sent from: http://spssx-discussion.1045642.n5.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
Art Kendall
Social Research Consultants