list the values of multiple variable

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

list the values of multiple variable

J McClure
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
Reply | Threaded
Open this post in threaded view
|

Re: list the values of multiple variable

Rick Oliver-3
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.



From: J McClure <[hidden email]>
To: [hidden email]
Date: 08/18/2010 11:38 AM
Subject: list the values of multiple variable
Sent by: "SPSSX(r) Discussion" <[hidden email]>





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


Reply | Threaded
Open this post in threaded view
|

Re: list the values of multiple variable

John F Hall
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 -----
Sent: Wednesday, August 18, 2010 6:37 PM
Subject: list the values of multiple variable

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
Reply | Threaded
Open this post in threaded view
|

Re: list the values of multiple variable

Bruce Weaver
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  }



John F Hall wrote
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 -----
  From: J McClure
  To: SPSSX-L@LISTSERV.UGA.EDU
  Sent: Wednesday, August 18, 2010 6:37 PM
  Subject: list the values of multiple variable


  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
  LISTSERV@LISTSERV.UGA.EDU (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
--
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/).
Reply | Threaded
Open this post in threaded view
|

Re: list the values of multiple variable

John F Hall
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
----- Original Message -----
Sent: Wednesday, August 18, 2010 9:44 PM
Subject: Re: list the values of multiple variable

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  }




John F Hall wrote:

>
> 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 -----
>   From: J McClure
>   To: [hidden email]
>   Sent: Wednesday, August 18, 2010 6:37 PM
>   Subject: list the values of multiple variable
>
>
>   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
>
>


-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/list-the-values-of-multiple-variable-tp2639747p2639970.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