Playing with some else's *.sav file (from SPSS 11) and this happened: cro var15a by q6 .
So I tried it the other way round, et voilà! cro q6 by var15a .
|
You are running into syntax ambiguity that
occurs with some older commands. The CROSSTABS syntax chart shows,
in parts,
CROSSTABS [TABLES=]varlist BY varlist [BY...] [/varlist...] Integer mode : CROSSTABS VARIABLES=varlist(min,max) [varlist...] Since the VARIABLES subcommand for integer
mode doesn't require a slash and keyword abbreviation is allowed, "var"
is being interpreted as a keyword. If you write the full syntax as
in TABLES=var15a by q6, you should be fine. Playing with some else's *.sav file (from SPSS 11) and this happened: cro var15a by q6 .
So I tried it the other way round, et voilà! cro q6 by var15a .
|
I thought integer mode was abolished years ago, and
who would have thought of CROSSTABS as an older command? OK, it's almost
the oldest.
The same thing happens with the full CROSSTABS
command:
crosstabs var15a by q6 .
. . . but it works with:
crosstabs tab var15a by q6
.
And here's me telling everyone syntax
is quicker and simpler than GUI, especially in lower case with abbreviated
syntax. So much for "improvements" and new releases!
Can someone please explain why it works
with:
cro q6 by var15a .
I think you need a better syntax parser. SPSS
21 ????
----- Original Message -----
|
It certainly saves typing that SPSS allows "abbreviation to uniqueness".� However it would be useful if there were an icon to expand all abbreviations to what SPSS "thinks" the user is saying.� This would enhance the readability of the syntax thereby facilitating communication to others. Art Kendall Social Research Consultants On 11/12/2010 10:23 AM, John F Hall wrote: ===================== 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 |
Free forum by Nabble | Edit this page |