|
I wrote some syntax that is not working correctly and i can't yet see
what is wrong. As a first step in debugging it I want to list the values for the 5 original variables and the newly created variable side by side. Thanks, Jan ===================== 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 |
|
Have you looked at the Summarize procedure?
It can list individual case values.
Also you could simply rearrange the order of variables in the data file and look at the Data in the Data Editor. Although Add Files and Match Files primarily exist for merging files, you can also use the /KEEP subcommand to change the order of variables in the active dataset, as in: add files file=* /keep oldvar1 newvar1 oldvar2 newvar2 ALL.
I wrote some syntax that is not working correctly and i can't yet see what is wrong. As a first step in debugging it I want to list the values for the 5 original variables and the newly created variable side by side. Thanks, Jan ===================== 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 J McClure
More haste, less speed, Jan!
Where's your original syntax?
You can run a test bit with:
list v1 to v5 newv1 to newv5
/cases 10 .
. . but SPSS keep changing the default output
formats, so you might have to do:
list v1 newv1 v2 newv2 v3
newv3 v4 newv4 v5 newv5 /cases 10 .
----- Original Message -----
|
|
Administrator
|
John's use of "/cases 10" on LIST was a new one to me, so I looked at the syntax chart for LIST, and learned that it also has a /FORMAT sub-command. For the benefit of others who've never looked at it before, here you go (best viewed in a fixed font).
LIST [VARIABLES={ALL** }] [/FORMAT=[{WRAP**}] [{UNNUMBERED**}]] {varlist} {SINGLE} {NUMBERED } [/CASES=[FROM {1**}] [TO {eof**}] [BY {1**}]] {n } {n } {n }
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
|
Bruce
Thought this would be Mickey Mouse stuff to someone
like you: amazed you'd never come across it before.
Just spent last week in massive overhaul and
rewrite of the SPSS tutorials in Block 1 and Block2 on my site. Pages are
now approaching textbook numbers and I'm supposed to be retired!
Also received seriously heavy parcel today
containing review copy of massive hardback tome:
Marsden and Wright [Eds] Handbook of Survey
Research
(886 pages, 2nd edition, Emerald, 2010 ISBN
978-1-84855-224-1).
It's dedicated to Peter Rossi and Andy Andersen who
edited the first edition 20 years ago.
John
|
| Free forum by Nabble | Edit this page |
